mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-14 06:10:32 +01:00
Avoid crash if entity not defined.
This commit is contained in:
parent
bcc181cb15
commit
b88f67f015
|
@ -117,6 +117,10 @@ end
|
|||
|
||||
--- Entity update
|
||||
function update_entity(entity)
|
||||
if not entity then
|
||||
return
|
||||
end
|
||||
|
||||
if not entity.nodepos then
|
||||
entity.object:remove() -- Remove old/buggy entity
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user