correctly handle place_param2 lol

This commit is contained in:
cora 2022-09-29 21:10:41 +02:00 committed by Gitea
parent e2f51e0779
commit 603e0ba774
1 changed files with 1 additions and 1 deletions

View File

@ -1401,7 +1401,7 @@ minetest.register_abm({
return
end
local n0 = minetest.get_node(p0)
if n0.param2 ~= 1 then
if n0.param2 == 1 then
-- Prevent leafdecay for player-placed leaves.
-- param2 is set to 1 after it was placed by the player
return