add nil check for prot display removal
This commit is contained in:
@@ -457,7 +457,8 @@ local del_display = function(pos)
|
|||||||
|
|
||||||
for _, v in ipairs(objects) do
|
for _, v in ipairs(objects) do
|
||||||
|
|
||||||
if v:get_luaentity().name == "protector:display" then
|
if v and v:get_luaentity()
|
||||||
|
and v:get_luaentity().name == "protector:display" then
|
||||||
v:remove()
|
v:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user