forked from VoxeLibre/VoxeLibre
correctly handle place_param2 lol
This commit is contained in:
parent
e2f51e0779
commit
603e0ba774
|
@ -1401,7 +1401,7 @@ minetest.register_abm({
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local n0 = minetest.get_node(p0)
|
local n0 = minetest.get_node(p0)
|
||||||
if n0.param2 ~= 1 then
|
if n0.param2 == 1 then
|
||||||
-- Prevent leafdecay for player-placed leaves.
|
-- Prevent leafdecay for player-placed leaves.
|
||||||
-- param2 is set to 1 after it was placed by the player
|
-- param2 is set to 1 after it was placed by the player
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue