From af78e4f3f0c2872959a0478ee93bc2aa506828cd Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 16 Feb 2017 19:18:51 +0100 Subject: [PATCH] Make item flowing work for all liquids --- mods/ENTITIES/mcl_item_entity/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index 85360b9af6..969e172ab9 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -385,8 +385,9 @@ core.register_entity(":__builtin:item", { for _, p in pairs(posses) do local realpos = vector.add(pos, p) local name = minetest.get_node(realpos).name + local def = minetest.registered_nodes[name] local par2 = minetest.get_node(realpos).param2 - if name == "mcl_core:water_source" or (name == "mcl_core:water_flowing" and par2 > param2) then + if def.liquidtype == "source" or (def.liquidtype == "flowing" and par2 > param2) then -- Node found! Since we looked upwards, the flowing -- direction is the *opposite* of what we've found return vector.multiply(p, -1)