From 055d6ecc96b6764062224a68a0c0ebe72594059c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 10 Sep 2019 15:12:36 +0200 Subject: [PATCH] Allow fishing in river water, too --- mods/ITEMS/mcl_fishing/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index e3eea80ab..f02b8f8bd 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -187,8 +187,8 @@ local bobber_on_step = function(self, dtime) end end - --if in liquid then bob. - if def.liquidtype == "source" and def.name == "mcl_core:water_source" then + -- If in water, then bob. + if def.liquidtype == "source" and minetest.get_item_group(def.name, "water") ~= 0 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