summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-09-11 09:45:04 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-09-11 09:45:04 +0000
commit61b061f669f84652f6d5dc3a41e3b3fe7a0da370 (patch)
treefd81520f7928d22041fdf1567e74453012e83d88
parenteb1064ca6d4d608a28301576282681aaec521c1a (diff)
parentfe91d5eb467ca9d865e9ff4eaa9d2a099b684d40 (diff)
downloadpipeworks-61b061f669f84652f6d5dc3a41e3b3fe7a0da370.tar
pipeworks-61b061f669f84652f6d5dc3a41e3b3fe7a0da370.tar.gz
pipeworks-61b061f669f84652f6d5dc3a41e3b3fe7a0da370.tar.bz2
pipeworks-61b061f669f84652f6d5dc3a41e3b3fe7a0da370.tar.xz
pipeworks-61b061f669f84652f6d5dc3a41e3b3fe7a0da370.zip
Merge branch 'avoid-protection-check-on-chest-close' into 'master'
Avoid protection check on chest close. Closes #23 See merge request VanessaE/pipeworks!26
-rw-r--r--compat-chests.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/compat-chests.lua b/compat-chests.lua
index eb681c8..c2c2020 100644
--- a/compat-chests.lua
+++ b/compat-chests.lua
@@ -77,10 +77,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
pipeworks.after_place(pos)
end)
minetest.sound_play(sound, {gain = 0.3, pos = pos, max_hear_distance = 10})
- end
-
- -- Pipeworks Switch
- if pipeworks.may_configure(pos, player) and not fields.quit then
+ elseif pipeworks.may_configure(pos, player) then
+ -- Pipeworks Switch
fs_helpers.on_receive_fields(pos, fields)
minetest.show_formspec(player:get_player_name(), "pipeworks:chest_formspec", get_chest_formspec(pos))
end