diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 03:11:48 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 03:11:48 -0400 |
commit | 29881ec85e87e5bc186aded048af596e36e84597 (patch) | |
tree | 1372bbc080f3161014abe40db29e15fa59f43093 /technic/machines/MV | |
parent | 7af18188490f514e7768ca0aae7454134f85140f (diff) | |
download | dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar.gz dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar.bz2 dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar.xz dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.zip |
updated technic and pipeworks
Diffstat (limited to 'technic/machines/MV')
-rw-r--r-- | technic/machines/MV/tool_workshop.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/technic/machines/MV/tool_workshop.lua b/technic/machines/MV/tool_workshop.lua index 9219717..6679d1d 100644 --- a/technic/machines/MV/tool_workshop.lua +++ b/technic/machines/MV/tool_workshop.lua @@ -5,6 +5,8 @@ minetest.register_alias("tool_workshop", "technic:tool_workshop") local S = technic.getter +local tube_entry = "^pipeworks_tube_connection_wooden.png" + minetest.register_craft({ output = 'technic:tool_workshop', recipe = { @@ -83,8 +85,14 @@ end minetest.register_node("technic:tool_workshop", { description = S("%s Tool Workshop"):format("MV"), paramtype2 = "facedir", - tiles = {"technic_workshop_top.png", "technic_machine_bottom.png", "technic_workshop_side.png", - "technic_workshop_side.png", "technic_workshop_side.png", "technic_workshop_side.png"}, + tiles = { + "technic_workshop_top.png"..tube_entry, + "technic_machine_bottom.png"..tube_entry, + "technic_workshop_side.png"..tube_entry, + "technic_workshop_side.png"..tube_entry, + "technic_workshop_side.png"..tube_entry, + "technic_workshop_side.png" + }, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_machine=1, technic_mv=1, tubedevice=1, tubedevice_receiver=1}, connect_sides = {"bottom", "back", "left", "right"}, @@ -103,8 +111,7 @@ minetest.register_node("technic:tool_workshop", { allow_metadata_inventory_take = technic.machine_inventory_take, tube = { can_insert = function (pos, node, stack, direction) - local onestack = stack:peek_item(1) - return minetest.get_meta(pos):get_inventory():room_for_item("src", onestack) + return minetest.get_meta(pos):get_inventory():room_for_item("src", stack) end, insert_object = function (pos, node, stack, direction) return minetest.get_meta(pos):get_inventory():add_item("src", stack) |