From bb3fe09871d6511b170479940522b5b757b7c921 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Fri, 28 Jul 2017 18:45:34 +0200 Subject: [PATCH] fix bug spawners_ore - crashing server --- spawners_ores/spawners_ores.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spawners_ores/spawners_ores.lua b/spawners_ores/spawners_ores.lua index a4e6aa7..07b6fc7 100644 --- a/spawners_ores/spawners_ores.lua +++ b/spawners_ores/spawners_ores.lua @@ -41,7 +41,7 @@ end local function allow_metadata_inventory_put(pos, listname, index, stack, player) if minetest.is_protected(pos, player:get_player_name()) then minetest.record_protection_violation(pos, player:get_player_name()) - return + return 0 end local meta = minetest.get_meta(pos) local inv = meta:get_inventory()