mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-12-04 20:13:44 +01:00
Remove entity where display node not found
This commit is contained in:
parent
86db2d2c72
commit
ca28c5e835
@ -133,6 +133,9 @@ function update_entity(entity)
|
|||||||
-- Call on_display_update callback of a node for one of its display entities
|
-- Call on_display_update callback of a node for one of its display entities
|
||||||
ndef.display_entities[entity.name].on_display_update(entity.nodepos,
|
ndef.display_entities[entity.name].on_display_update(entity.nodepos,
|
||||||
entity.object)
|
entity.object)
|
||||||
|
else
|
||||||
|
-- Display node has been removed, remove entity also
|
||||||
|
entity.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user