mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 09:36:27 -04:00
Allow placing decaying leaves when holding shift
This commit is contained in:
parent
e604d8d7f3
commit
7b513532c2
1 changed files with 5 additions and 3 deletions
|
@ -201,9 +201,11 @@ minetest.register_globalstep(function(dtime)
|
|||
end)
|
||||
|
||||
default.after_place_leaves = function(pos, placer, itemstack, pointed_thing)
|
||||
local node = minetest.get_node(pos)
|
||||
node.param2 = 1
|
||||
minetest.set_node(pos, node)
|
||||
if placer and placer:get_player_control().sneak ~= true then
|
||||
local node = minetest.get_node(pos)
|
||||
node.param2 = 1
|
||||
minetest.set_node(pos, node)
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_abm({
|
||||
|
|
Loading…
Add table
Reference in a new issue