Skip to content

Commit c800398

Browse files
AlexYstparamat
authored andcommittedSep 28, 2019
Always disable leafdecay for player-placed leaves, even when 'sneaking'
Avoids player-placed leaves decaying when building while sneaking, which is common.
1 parent 05375c0 commit c800398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎mods/default/functions.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ end
414414
-- Prevent decay of placed leaves
415415

416416
default.after_place_leaves = function(pos, placer, itemstack, pointed_thing)
417-
if placer and placer:is_player() and not placer:get_player_control().sneak then
417+
if placer and placer:is_player() then
418418
local node = minetest.get_node(pos)
419419
node.param2 = 1
420420
minetest.set_node(pos, node)

0 commit comments

Comments
 (0)
Please sign in to comment.