Fixed all unknown's use in builtin with a check then return

This commit is contained in:
LeMagnesium 2015-03-26 20:54:05 +01:00
parent fa08177744
commit 718861d80c
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ minetest.register_entity(":__builtin:item", {
self.object:setacceleration({x = 0, y = -10, z = 0})
end
--]]
if not minetest.registered_nodes[name] then return end
if minetest.registered_nodes[name].liquidtype == "flowing" then
local get_flowing_dir = function(self)
local pos = self.object:getpos()