Closed jhg023 closed 6 years ago
Looks good, but needs to pass on CircleCI.
@momothereal This currently fires an EntityTeleportEvent inside each entity's constructor. Is that the correct behavior?
I think this event should be excluded from the entity's constructor. Assuming some user wants to disable Enderman teleportation, cancelling this event would lead to the Enderman never spawning in the first place, right?
The
EntityTeleportEvent
is now fired when aGlowEntity
that is not aGlowPlayer
attempts to teleport, as stated by its documentation.This has not been tested, as Enderman teleportation has not yet been implemented, but a
TODO
comment has been added for whenever that occurs.Thanks!