This commit is contained in:
Tim 2015-01-26 15:58:37 +01:00
parent 464f378166
commit b0714c7897
1 changed files with 5 additions and 7 deletions

View File

@ -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)