1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-11 18:40:25 +01:00

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

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()