From 467baaf67c987578a2e81905e81514fcf826bfd6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 30 May 2017 05:51:48 +0200 Subject: [PATCH] Fix broken item safety code --- mods/ENTITIES/mcl_item_entity/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index 7c5a420791..2ae27a49a6 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -103,8 +103,8 @@ minetest.register_globalstep(function(dtime) if object:get_luaentity().init ~= true then object:get_luaentity().init = true minetest.after(1, function(args) - local player = args.player - local object = args.object + local player = args[1] + local object = args[2] local lua = object:get_luaentity() if player == nil or not player:is_player() or object == nil or lua == nil or lua.itemstring == nil then return