summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-19 22:59:37 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-19 22:59:37 -0400
commit1273d829179174c6635b48d975225fca4ef6449b (patch)
treefc480f268da755ddc8940046ad3b257f18dc6823
parent078161c51d49c0b82cd6b9c4c809524d45dc58b2 (diff)
downloadpipeworks-1273d829179174c6635b48d975225fca4ef6449b.tar
pipeworks-1273d829179174c6635b48d975225fca4ef6449b.tar.gz
pipeworks-1273d829179174c6635b48d975225fca4ef6449b.tar.bz2
pipeworks-1273d829179174c6635b48d975225fca4ef6449b.tar.xz
pipeworks-1273d829179174c6635b48d975225fca4ef6449b.zip
only return true from receive_fields() when actually needed
-rw-r--r--compat-chests.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat-chests.lua b/compat-chests.lua
index 0fe95dd..7cff6fd 100644
--- a/compat-chests.lua
+++ b/compat-chests.lua
@@ -83,10 +83,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
fs_helpers.on_receive_fields(pos, fields)
minetest.show_formspec(player:get_player_name(), "pipeworks:chest_formspec", get_chest_formspec(pos))
end
+ return true
end
end
-
- return true
end)
-- Original Definitions