forked from mtcontrib/homedecor_modpack
perform the after-place-fix-rotation at the end of on_place
This commit is contained in:
parent
f29e2fc698
commit
7d3b2f921e
@ -43,7 +43,6 @@ homedecor.register("book", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
palette = "unifieddyes_palette_colorwallmounted.png",
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
||||||
after_place_node = homedecor.fix_rotation_nsew,
|
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
on_punch = function(pos, node, puncher, pointed_thing)
|
||||||
@ -86,6 +85,7 @@ homedecor.register("book", {
|
|||||||
if not homedecor.expect_infinite_stacks then
|
if not homedecor.expect_infinite_stacks then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
homedecor.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
on_dig = book_dig,
|
on_dig = book_dig,
|
||||||
|
Loading…
Reference in New Issue
Block a user