From a0838b17c2b3c0bc6387cb4a103c84470721074e Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 19 May 2021 13:38:40 +0100 Subject: [PATCH] Revert "Remove itneract event from boat" (Fixes #5677) --- .../Remove-interact-event-from-boat.patch | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 Spigot-Server-Patches/Remove-interact-event-from-boat.patch diff --git a/Spigot-Server-Patches/Remove-interact-event-from-boat.patch b/Spigot-Server-Patches/Remove-interact-event-from-boat.patch deleted file mode 100644 index 75feb02d86..0000000000 --- a/Spigot-Server-Patches/Remove-interact-event-from-boat.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> -Date: Fri, 23 Apr 2021 16:37:12 -0400 -Subject: [PATCH] Remove interact event from boat - - -diff --git a/src/main/java/net/minecraft/world/item/ItemBoat.java b/src/main/java/net/minecraft/world/item/ItemBoat.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/world/item/ItemBoat.java -+++ b/src/main/java/net/minecraft/world/item/ItemBoat.java -@@ -0,0 +0,0 @@ public class ItemBoat extends Item { - } - - if (movingobjectpositionblock.getType() == MovingObjectPosition.EnumMovingObjectType.BLOCK) { -+ /* Paper - Remove unneeded interaction event trigger - // CraftBukkit start - Boat placement - org.bukkit.event.player.PlayerInteractEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(entityhuman, org.bukkit.event.block.Action.RIGHT_CLICK_BLOCK, movingobjectpositionblock.getBlockPosition(), movingobjectpositionblock.getDirection(), itemstack, enumhand); - -@@ -0,0 +0,0 @@ public class ItemBoat extends Item { - return InteractionResultWrapper.pass(itemstack); - } - // CraftBukkit end -+ */ // Paper - Remove unneeded interaction event trigger - EntityBoat entityboat = new EntityBoat(world, movingobjectpositionblock.getPos().x, movingobjectpositionblock.getPos().y, movingobjectpositionblock.getPos().z); - - entityboat.setType(this.b);