mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-12-05 03:23:46 +01:00
set default param2 for falling nodes
This commit is contained in:
parent
0be429fa79
commit
c83f406f37
3
init.lua
3
init.lua
@ -501,7 +501,7 @@ local lb_falling = function(pos, digger, def)
|
||||
pos2.z = pos.z + math.random(-range, range)
|
||||
end
|
||||
|
||||
local n = minetest.registered_nodes[nods[s]]
|
||||
local n = table.copy(minetest.registered_nodes[nods[s]])
|
||||
|
||||
if n then
|
||||
|
||||
@ -512,6 +512,7 @@ local lb_falling = function(pos, digger, def)
|
||||
local ent = obj:get_luaentity()
|
||||
|
||||
if ent then
|
||||
n.param2 = 1 -- set default rotation
|
||||
ent:set_node(n)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user