mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-08 10:57:29 +01:00
add nil check for prot display removal
This commit is contained in:
parent
6bca4ffdff
commit
034029b0f4
3
init.lua
3
init.lua
@ -457,7 +457,8 @@ local del_display = function(pos)
|
||||
|
||||
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()
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user