mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
fix #176
This commit is contained in:
parent
464f378166
commit
b0714c7897
@ -111,13 +111,11 @@ function homedecor.register(name, def)
|
|||||||
if expand then
|
if expand then
|
||||||
def.on_place = def.on_place or function(itemstack, placer, pointed_thing)
|
def.on_place = def.on_place or function(itemstack, placer, pointed_thing)
|
||||||
if expand.top then
|
if expand.top then
|
||||||
homedecor.stack_vertically(itemstack, placer, pointed_thing, itemstack:get_name(), expand.top)
|
return homedecor.stack_vertically(itemstack, placer, pointed_thing, itemstack:get_name(), expand.top)
|
||||||
end
|
elseif expand.right then
|
||||||
if expand.right then
|
return homedecor.stack_sideways(itemstack, placer, pointed_thing, itemstack:get_name(), expand.right, true)
|
||||||
homedecor.stack_sideways(itemstack, placer, pointed_thing, itemstack:get_name(), expand.right, true)
|
elseif expand.forward then
|
||||||
end
|
return homedecor.stack_sideways(itemstack, placer, pointed_thing, itemstack:get_name(), expand.forward, false)
|
||||||
if expand.forward then
|
|
||||||
homedecor.stack_sideways(itemstack, placer, pointed_thing, itemstack:get_name(), expand.forward, false)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def.after_dig_node = def.after_dig_node or function(pos, oldnode, oldmetadata, digger)
|
def.after_dig_node = def.after_dig_node or function(pos, oldnode, oldmetadata, digger)
|
||||||
|
Loading…
Reference in New Issue
Block a user