diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 12:07:17 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 12:07:17 -0500 |
commit | cbfeb0192c7ae4e13b6833c00b7115a7157c5d1d (patch) | |
tree | 3885be0485213f175f3e456c7c4b653b95620a7d | |
parent | bccefd699731b8524b9f5f3e99d5dc7a43383ee8 (diff) |
fix crash placing chests re: tubes
-rw-r--r-- | technic_chests/register.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/technic_chests/register.lua b/technic_chests/register.lua index 9d82431..30f879b 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -207,8 +207,11 @@ function technic.chests:definition(name, data) meta:set_string("infotext", S("%s Locked Chest (owned by %s)") :format(name, meta:get_string("owner"))) + pipeworks.after_place(pos) end table.insert(front, "technic_"..lname.."_chest_lock_overlay.png") + else + locked_after_place = pipeworks.after_place end local desc @@ -228,10 +231,7 @@ function technic.chests:definition(name, data) tube = self.tube, legacy_facedir_simple = true, sounds = default.node_sound_wood_defaults(), - after_place_node = function(pos) - if locked_after_place then locked_after_place(pos, placer) end - pipeworks.after_place(pos) - end, + after_place_node = locked_after_place, after_dig_node = pipeworks.after_dig, on_construct = function(pos) |