From fa3ca029060525b4997b8a92b7b284f91ac86514 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 29 Jun 2017 11:49:51 +0200 Subject: [PATCH] Fix crash with unknown item in water --- mods/ITEMS/mcl_core/functions.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 719939b53..a7b74415d 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -108,6 +108,9 @@ local liquid_flow_action = function(pos, group, action) return false end local d = minetest.registered_nodes[n.name] + if not d then + return false + end --[[ Check if we want to perform the liquid action. * 1: Item must be in liquid group * 2a: If target node is below liquid, always succeed