diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 08:58:19 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 09:01:12 -0400 |
commit | 698c83d6264ab5a23e90c84f4631af28abc44ccc (patch) | |
tree | af38792ac11af8ba7de616fb53145d02f1e4fb6d /compat-furnaces.lua | |
parent | fcd9b0fbf434b65dc61442350e5371f0ee690d12 (diff) |
chests/furnaces: cache tube overlay images
Diffstat (limited to 'compat-furnaces.lua')
-rw-r--r-- | compat-furnaces.lua | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/compat-furnaces.lua b/compat-furnaces.lua index ae63e3a..c2c5df4 100644 --- a/compat-furnaces.lua +++ b/compat-furnaces.lua @@ -4,6 +4,8 @@ local fs_helpers = pipeworks.fs_helpers +tube_entry = "^pipeworks_tube_connection_stony.png" + local function active_formspec(fuel_percent, item_percent, pos, meta) local formspec = "size[8,8.5]".. @@ -271,11 +273,11 @@ end minetest.register_node(":default:furnace", { description = "Furnace", tiles = { - "default_furnace_top.png^pipeworks_tube_connection_stony.png", - "default_furnace_bottom.png^pipeworks_tube_connection_stony.png", - "default_furnace_side.png^pipeworks_tube_connection_stony.png", - "default_furnace_side.png^pipeworks_tube_connection_stony.png", - "default_furnace_side.png^pipeworks_tube_connection_stony.png", + "default_furnace_top.png"..tube_entry, + "default_furnace_bottom.png"..tube_entry, + "default_furnace_side.png"..tube_entry, + "default_furnace_side.png"..tube_entry, + "default_furnace_side.png"..tube_entry, "default_furnace_front.png" }, groups = {cracky = 2, tubedevice = 1, tubedevice_receiver = 1}, @@ -359,11 +361,11 @@ minetest.register_node(":default:furnace", { minetest.register_node(":default:furnace_active", { description = "Furnace", tiles = { - "default_furnace_top.png^pipeworks_tube_connection_stony.png", - "default_furnace_bottom.png^pipeworks_tube_connection_stony.png", - "default_furnace_side.png^pipeworks_tube_connection_stony.png", - "default_furnace_side.png^pipeworks_tube_connection_stony.png", - "default_furnace_side.png^pipeworks_tube_connection_stony.png", + "default_furnace_top.png"..tube_entry, + "default_furnace_bottom.png"..tube_entry, + "default_furnace_side.png"..tube_entry, + "default_furnace_side.png"..tube_entry, + "default_furnace_side.png"..tube_entry, { image = "default_furnace_front_active.png", backface_culling = false, |