diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-11-08 21:16:03 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-11-08 21:23:54 +0100 |
commit | ae059f2061e752700d69da817f217e21f8ec7170 (patch) | |
tree | 24008d20c04873045e6c50f02ca54f9518fe3233 /faregate.lua | |
parent | ab14f61bac021d4b9677927bfd326762a61c485a (diff) | |
download | farebox-ae059f2061e752700d69da817f217e21f8ec7170.tar.gz farebox-ae059f2061e752700d69da817f217e21f8ec7170.tar.bz2 farebox-ae059f2061e752700d69da817f217e21f8ec7170.zip |
Security: block access to inventories for hacked clients
This fix forbids unauthorized players from accessing the inventory.
Diffstat (limited to 'faregate.lua')
-rw-r--r-- | faregate.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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", { |