From ae059f2061e752700d69da817f217e21f8ec7170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sun, 8 Nov 2020 21:16:03 +0100 Subject: Security: block access to inventories for hacked clients This fix forbids unauthorized players from accessing the inventory. --- faregate.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'faregate.lua') diff --git a/faregate.lua b/faregate.lua index e5170bd..2871e54 100644 --- a/faregate.lua +++ b/faregate.lua @@ -43,7 +43,9 @@ minetest.register_node("farebox:faregate", { on_rightclick = function(pos, node, player, itemstack, pointed_thing) farebox.show_formspec(pos, player) end, - + allow_metadata_inventory_put = farebox.allow_metadata_inventory_put, + allow_metadata_inventory_take = farebox.allow_metadata_inventory_take, + allow_metadata_inventory_move = farebox.allow_metadata_inventory_move, }) minetest.register_node("farebox:faregate_open", { -- cgit v1.2.3