From 306648dc4c69d196e580583a077d49e20e10c507 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 21 Nov 2021 11:22:07 +1100 Subject: [PATCH] SPIGOT-6797: EntityInteractEvent called with incorrect location By: md_5 --- .../world/entity/ai/behavior/BehaviorInteractDoor.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch b/paper-server/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch index 8e2915b1ee..b5683cc349 100644 --- a/paper-server/nms-patches/net/minecraft/world/entity/ai/behavior/BehaviorInteractDoor.patch +++ b/paper-server/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;