From 37af2dbba1b89945bce2ca51b923c65784924141 Mon Sep 17 00:00:00 2001 From: Rootyjr <41842051+Rootyjr@users.noreply.github.com> Date: Wed, 31 Jul 2019 22:34:53 -0500 Subject: [PATCH] Fix fishing allowed in lava. --- mods/ITEMS/mcl_fishing/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index 65c2590e9..6b5554f16 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -15,8 +15,8 @@ local bobber_ENTITY={ collisionbox = {0.45,0.45,0.45,0.45,0.45,0.45}, pointable = false, - get_staticdata = get_staticdata, - on_activate = on_activate, + --get_staticdata = get_staticdata, + --on_activate = on_activate, _lastpos={}, _dive = false, @@ -191,7 +191,7 @@ local bobber_on_step = function(self, dtime) end --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 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