Merge branch 'avoid-protection-check-on-chest-close' into 'master'

Avoid protection check on chest close.

Closes #23

See merge request VanessaE/pipeworks!26
This commit is contained in:
Vanessa Dannenberg 2020-09-11 09:45:04 +00:00
джерело eb1064ca6d fe91d5eb46
коміт 61b061f669
1 змінених файлів з 2 додано та 4 видалено

@ -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