entry.entity and entry.entity.valid ?
Posted: Thu Jul 25, 2019 6:46 pm
i know that in events, you should use both.
But is there any case where you need both safety checks for a reference you stored in a variable?
For example when the entity/gui/etc gets removed upon mod uninstallation?
when i destroy an entity, its reference usually (always?) remains in the variable, it'll just be invalid
But is there any case where you need both safety checks for a reference you stored in a variable?
For example when the entity/gui/etc gets removed upon mod uninstallation?
when i destroy an entity, its reference usually (always?) remains in the variable, it'll just be invalid