mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 05:44:26 -04:00
Update functions.lua
This commit is contained in:
parent
74c252a08f
commit
fa04b17017
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ minetest.register_globalstep(function(dtime)
|
|||
end)
|
||||
|
||||
default.after_place_leaves = function(pos, placer, itemstack, pointed_thing)
|
||||
if placer and placer:get_player_control().sneak then
|
||||
if placer and not placer:get_player_control().sneak then
|
||||
local node = minetest.get_node(pos)
|
||||
node.param2 = 1
|
||||
minetest.set_node(pos, node)
|
||||
|
|
Loading…
Add table
Reference in a new issue