mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-10-05 22:13:06 +02: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)
|
pos2.z = pos.z + math.random(-range, range)
|
||||||
end
|
end
|
||||||
|
|
||||||
local n = minetest.registered_nodes[nods[s]]
|
local n = table.copy(minetest.registered_nodes[nods[s]])
|
||||||
|
|
||||||
if n then
|
if n then
|
||||||
|
|
||||||
@ -512,6 +512,7 @@ local lb_falling = function(pos, digger, def)
|
|||||||
local ent = obj:get_luaentity()
|
local ent = obj:get_luaentity()
|
||||||
|
|
||||||
if ent then
|
if ent then
|
||||||
|
n.param2 = 1 -- set default rotation
|
||||||
ent:set_node(n)
|
ent:set_node(n)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user