mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-11-19 23:33:44 +01:00
falling node check for unknown nodes and report
This commit is contained in:
parent
f9f94afa14
commit
d340329ebe
4
init.lua
4
init.lua
@ -535,7 +535,8 @@ local lb_falling = function(pos, digger, def)
|
||||
pos2.z = pos.z + math.random(-range, range)
|
||||
end
|
||||
|
||||
local n = nods[s] and table.copy(minetest.registered_nodes[nods[s]])
|
||||
local node = nods[s] and minetest.registered_nodes[nods[s]]
|
||||
local n = node and table.copy(minetest.registered_nodes[nods[s]])
|
||||
|
||||
if n then
|
||||
|
||||
@ -550,6 +551,7 @@ local lb_falling = function(pos, digger, def)
|
||||
ent:set_node(n)
|
||||
end
|
||||
end
|
||||
else print("[MOD] Lucky Block - Falling Node Error, Not Found:", nods[s])
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user