aboutsummaryrefslogtreecommitdiff
path: root/builtin/common
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-03-29 21:44:13 +0200
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commitfe41725e5027e90787f18088be82839760cccbb5 (patch)
treebca04b46d4e17759fd9757e5a06244e1d5ad94d3 /builtin/common
parent5624cf750f0c9de872dfff51eefd86575fa9c764 (diff)
downloadminetest-fe41725e5027e90787f18088be82839760cccbb5.tar.gz
minetest-fe41725e5027e90787f18088be82839760cccbb5.tar.bz2
minetest-fe41725e5027e90787f18088be82839760cccbb5.zip
core.rotate_node: Do not trigger after_place_node (#6900)
Diffstat (limited to 'builtin/common')
-rw-r--r--builtin/common/misc_helpers.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua
index ab2da14ea..aad5f2d21 100644
--- a/builtin/common/misc_helpers.lua
+++ b/builtin/common/misc_helpers.lua
@@ -341,7 +341,7 @@ if INIT == "game" then
local dirs2 = {20, 23, 22, 21}
function core.rotate_and_place(itemstack, placer, pointed_thing,
- infinitestacks, orient_flags)
+ infinitestacks, orient_flags, prevent_after_place)
orient_flags = orient_flags or {}
local unode = core.get_node_or_nil(pointed_thing.under)
@@ -394,7 +394,7 @@ if INIT == "game" then
local old_itemstack = ItemStack(itemstack)
local new_itemstack, removed = core.item_place_node(
- itemstack, placer, pointed_thing, param2
+ itemstack, placer, pointed_thing, param2, prevent_after_place
)
return infinitestacks and old_itemstack or new_itemstack
end
@@ -415,7 +415,7 @@ if INIT == "game" then
local invert_wall = placer and placer:get_player_control().sneak or false
core.rotate_and_place(itemstack, placer, pointed_thing,
is_creative(name),
- {invert_wall = invert_wall})
+ {invert_wall = invert_wall}, true)
return itemstack
end
end