fix bug spawners_ore - crashing server

This commit is contained in:
Juraj Vajda 2017-07-28 18:45:34 +02:00
parent 1a567ced12
commit bb3fe09871

View File

@ -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()