From 849bc22bdfdec3da48e8fc8d30eb4edd397841a1 Mon Sep 17 00:00:00 2001 From: HexedHero <6012891+HexedHero@users.noreply.github.com> Date: Sat, 21 Aug 2021 14:53:01 +0100 Subject: [PATCH] Add note about EntityMoveEvent not firing for players (#6406) --- patches/api/EntityMoveEvent.patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patches/api/EntityMoveEvent.patch b/patches/api/EntityMoveEvent.patch index 5feea6ff8f..c3bedb31d4 100644 --- a/patches/api/EntityMoveEvent.patch +++ b/patches/api/EntityMoveEvent.patch @@ -18,10 +18,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; +import org.bukkit.event.entity.EntityEvent; ++import org.bukkit.event.player.PlayerMoveEvent; +import org.jetbrains.annotations.NotNull; + +/** + * Holds information for living entity movement events ++ *
++ * Does not fire for players; use {@link PlayerMoveEvent} for player movement. + */ +public class EntityMoveEvent extends EntityEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList();