From eb14700779988ec72c6d34d228d6880debe2731e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 21 Nov 2021 11:22:07 +1100 Subject: [PATCH] SPIGOT-6797: EntityInteractEvent called with incorrect location --- .../world/entity/ai/behavior/BehaviorInteractDoor.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch b/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch index 8e2915b1e..b5683cc34 100644 --- a/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch +++ b/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch @@ -19,7 +19,7 @@ if (!blockdoor1.h(iblockdata1)) { + // CraftBukkit start - entities opening doors -+ org.bukkit.event.entity.EntityInteractEvent event = new org.bukkit.event.entity.EntityInteractEvent(entityliving.getBukkitEntity(), org.bukkit.craftbukkit.block.CraftBlock.at(entityliving.level, blockposition)); ++ org.bukkit.event.entity.EntityInteractEvent event = new org.bukkit.event.entity.EntityInteractEvent(entityliving.getBukkitEntity(), org.bukkit.craftbukkit.block.CraftBlock.at(entityliving.level, blockposition1)); + entityliving.level.getCraftServer().getPluginManager().callEvent(event); + if (event.isCancelled()) { + return;