From 1273d829179174c6635b48d975225fca4ef6449b Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 19 Jun 2017 22:59:37 -0400 Subject: only return true from receive_fields() when actually needed --- compat-chests.lua | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3