perform the after-place-fix-rotation at the end of on_place

This commit is contained in:
Vanessa Ezekowitz 2017-02-07 00:17:06 -05:00
parent f29e2fc698
commit 7d3b2f921e

View File

@ -43,7 +43,6 @@ homedecor.register("book", {
walkable = false,
paramtype2 = "colorwallmounted",
palette = "unifieddyes_palette_colorwallmounted.png",
after_place_node = homedecor.fix_rotation_nsew,
after_dig_node = unifieddyes.after_dig_node,
stack_max = 1,
on_punch = function(pos, node, puncher, pointed_thing)
@ -86,6 +85,7 @@ homedecor.register("book", {
if not homedecor.expect_infinite_stacks then
itemstack:take_item()
end
homedecor.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
return itemstack
end,
on_dig = book_dig,