summaryrefslogtreecommitdiff
path: root/callbacks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'callbacks.lua')
-rw-r--r--callbacks.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/callbacks.lua b/callbacks.lua
index 53601b0..fe76543 100644
--- a/callbacks.lua
+++ b/callbacks.lua
@@ -49,6 +49,9 @@ minetest.register_on_joinplayer(function(player)
end)
minetest.register_on_player_receive_fields(function(player, formname, fields)
+ if formname ~= "" then
+ return
+ end
local player_name = player:get_player_name()
for i, def in pairs(unified_inventory.buttons) do