mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
Fix fishing allowed in lava.
This commit is contained in:
parent
48b73f5f2e
commit
37af2dbba1
@ -15,8 +15,8 @@ local bobber_ENTITY={
|
|||||||
collisionbox = {0.45,0.45,0.45,0.45,0.45,0.45},
|
collisionbox = {0.45,0.45,0.45,0.45,0.45,0.45},
|
||||||
pointable = false,
|
pointable = false,
|
||||||
|
|
||||||
get_staticdata = get_staticdata,
|
--get_staticdata = get_staticdata,
|
||||||
on_activate = on_activate,
|
--on_activate = on_activate,
|
||||||
|
|
||||||
_lastpos={},
|
_lastpos={},
|
||||||
_dive = false,
|
_dive = false,
|
||||||
@ -191,7 +191,7 @@ local bobber_on_step = function(self, dtime)
|
|||||||
|
|
||||||
end
|
end
|
||||||
--if in liquid then bob.
|
--if in liquid then bob.
|
||||||
if def.liquidtype == "source" then
|
if def.liquidtype == "source" and def.name == "mcl_core:water" then
|
||||||
if self._oldy == nil then
|
if self._oldy == nil then
|
||||||
self.object:set_pos({x=self.object:get_pos().x,y=math.floor(self.object:get_pos().y)+.5,z=self.object:get_pos().z})
|
self.object:set_pos({x=self.object:get_pos().x,y=math.floor(self.object:get_pos().y)+.5,z=self.object:get_pos().z})
|
||||||
self._oldy = self.object:get_pos().y
|
self._oldy = self.object:get_pos().y
|
||||||
|
Loading…
Reference in New Issue
Block a user