diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-07-30 15:36:27 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-07-30 15:36:27 -0400 |
commit | 88bdac62e3f36c1125c82b44e2bc6fd718e05322 (patch) | |
tree | ebccbef615c51104a6cbca2d3ab957a29445a4ae /technic_chests/register.lua | |
parent | 12d0c6522bbca906910aae0321cbaa7eb48db8c2 (diff) | |
parent | 60bc80692ba51ad0a7f2391803ee454b18cb7174 (diff) |
Merge remote-tracking branch 'zefram/zefram/centrifuge'
Diffstat (limited to 'technic_chests/register.lua')
-rw-r--r-- | technic_chests/register.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/technic_chests/register.lua b/technic_chests/register.lua index 17b1a0e..0344c2c 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -49,7 +49,9 @@ end local function check_color_buttons(pos, meta, chest_name, fields) for i = 1, 16 do if fields["color_button"..i] then - technic.swap_node(pos, chest_name..colorid_to_postfix(i)) + local node = minetest.get_node(pos) + node.name = chest_name..colorid_to_postfix(i) + minetest.swap_node(pos, node) meta:set_string("color", i) return end |