0
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

View File

@ -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