mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 07:13:00 +00:00
Fix broken item safety code
This commit is contained in:
parent
b33d4bf9f8
commit
467baaf67c
1 changed files with 2 additions and 2 deletions
|
@ -103,8 +103,8 @@ minetest.register_globalstep(function(dtime)
|
||||||
if object:get_luaentity().init ~= true then
|
if object:get_luaentity().init ~= true then
|
||||||
object:get_luaentity().init = true
|
object:get_luaentity().init = true
|
||||||
minetest.after(1, function(args)
|
minetest.after(1, function(args)
|
||||||
local player = args.player
|
local player = args[1]
|
||||||
local object = args.object
|
local object = args[2]
|
||||||
local lua = object:get_luaentity()
|
local lua = object:get_luaentity()
|
||||||
if player == nil or not player:is_player() or object == nil or lua == nil or lua.itemstring == nil then
|
if player == nil or not player:is_player() or object == nil or lua == nil or lua.itemstring == nil then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue