Page 1 of 1

[kovarex] Teleportation doesn't update entity connections

Posted: Fri May 26, 2017 1:31 am
by TokMor
Teleporting entities doesn't update beacons/loaders. For example, if you put a chest down next to a loader and then teleport it away, the loader will still load/unload the chest no matter where it is on the map. Similarly if you teleport an entity outside the range of a beacon, it doesn't lose the effect that the beacon provided.

if This is not a bug can we get a method to force it to update that doesn't involve destroying and replacing?

Thanks!

Re: [kovarex] Teleportation doesn't update entity connections

Posted: Fri May 26, 2017 12:30 pm
by kovarex
I added LuaEntity::update_connections that is doing exactly that.
It could be done automatically, but it would drain the performance.

Re: [kovarex] Teleportation doesn't update entity connections

Posted: Fri May 26, 2017 1:10 pm
by Nexela
Best devs ever!