diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 03:22:56 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 03:22:56 -0500 |
commit | d5db189cf4a6a5e0b9fe575c27dd7f2d00bb006a (patch) | |
tree | 0964aa1df2e87fd096a297c53a3a386ddba46329 /technic_chests | |
parent | 48e02b84526733eaa0f99ccc01de6d76ad1ba7fa (diff) |
fix chests connecting to tubes
Diffstat (limited to 'technic_chests')
-rw-r--r-- | technic_chests/register.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/technic_chests/register.lua b/technic_chests/register.lua index 14baa95..9d82431 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -228,7 +228,12 @@ function technic.chests:definition(name, data) tube = self.tube, legacy_facedir_simple = true, sounds = default.node_sound_wood_defaults(), - after_place_node = locked_after_place, + after_place_node = function(pos) + if locked_after_place then locked_after_place(pos, placer) end + pipeworks.after_place(pos) + end, + after_dig_node = pipeworks.after_dig, + on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("infotext", S("%s Chest"):format(name)) |