mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 02:50:25 +01:00
Fixed all unknown's use in builtin with a check then return
This commit is contained in:
parent
fa08177744
commit
718861d80c
@ -106,7 +106,7 @@ minetest.register_entity(":__builtin:item", {
|
|||||||
self.object:setacceleration({x = 0, y = -10, z = 0})
|
self.object:setacceleration({x = 0, y = -10, z = 0})
|
||||||
end
|
end
|
||||||
--]]
|
--]]
|
||||||
|
if not minetest.registered_nodes[name] then return end
|
||||||
if minetest.registered_nodes[name].liquidtype == "flowing" then
|
if minetest.registered_nodes[name].liquidtype == "flowing" then
|
||||||
local get_flowing_dir = function(self)
|
local get_flowing_dir = function(self)
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
|
Loading…
Reference in New Issue
Block a user