Fix crash with unknown item in water

This commit is contained in:
Wuzzy 2017-06-29 11:49:51 +02:00
parent 82fca7edf6
commit fa3ca02906

@ -108,6 +108,9 @@ local liquid_flow_action = function(pos, group, action)
return false return false
end end
local d = minetest.registered_nodes[n.name] local d = minetest.registered_nodes[n.name]
if not d then
return false
end
--[[ Check if we want to perform the liquid action. --[[ Check if we want to perform the liquid action.
* 1: Item must be in liquid group * 1: Item must be in liquid group
* 2a: If target node is below liquid, always succeed * 2a: If target node is below liquid, always succeed