mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 02:10:23 +01:00
parent
eb1064ca6d
commit
fe91d5eb46
@ -77,10 +77,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
pipeworks.after_place(pos)
|
pipeworks.after_place(pos)
|
||||||
end)
|
end)
|
||||||
minetest.sound_play(sound, {gain = 0.3, pos = pos, max_hear_distance = 10})
|
minetest.sound_play(sound, {gain = 0.3, pos = pos, max_hear_distance = 10})
|
||||||
end
|
elseif pipeworks.may_configure(pos, player) then
|
||||||
|
-- Pipeworks Switch
|
||||||
-- Pipeworks Switch
|
|
||||||
if pipeworks.may_configure(pos, player) and not fields.quit then
|
|
||||||
fs_helpers.on_receive_fields(pos, fields)
|
fs_helpers.on_receive_fields(pos, fields)
|
||||||
minetest.show_formspec(player:get_player_name(), "pipeworks:chest_formspec", get_chest_formspec(pos))
|
minetest.show_formspec(player:get_player_name(), "pipeworks:chest_formspec", get_chest_formspec(pos))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user