From aae9a2351bf1cb6468f979b2c7fb2f04b7155592 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/0270-EntityMoveEvent.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/api/0270-EntityMoveEvent.patch b/patches/api/0270-EntityMoveEvent.patch index 0f5a4c5a81..487e39befe 100644 --- a/patches/api/0270-EntityMoveEvent.patch +++ b/patches/api/0270-EntityMoveEvent.patch @@ -6,10 +6,10 @@ Subject: [PATCH] EntityMoveEvent diff --git a/src/main/java/io/papermc/paper/event/entity/EntityMoveEvent.java b/src/main/java/io/papermc/paper/event/entity/EntityMoveEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..fae0b1daf733e85d8f691f5ef934b8c0b51db194 +index 0000000000000000000000000000000000000000..9704bfa38cf535a247d7b661e5132ba82c836832 --- /dev/null +++ b/src/main/java/io/papermc/paper/event/entity/EntityMoveEvent.java -@@ -0,0 +1,140 @@ +@@ -0,0 +1,143 @@ +package io.papermc.paper.event.entity; + +import com.google.common.base.Preconditions; @@ -18,10 +18,13 @@ index 0000000000000000000000000000000000000000..fae0b1daf733e85d8f691f5ef934b8c0 +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();