1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-25 02:10:23 +01:00

only return true from receive_fields() when actually needed

This commit is contained in:
Vanessa Ezekowitz 2017-06-19 22:59:37 -04:00
parent 078161c51d
commit 1273d82917

View File

@ -83,10 +83,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
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
end
end
return true return true
end
end
end) end)
-- Original Definitions -- Original Definitions