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