mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Remove boat interaction event (Fixes #5539)
This commit is contained in:
parent
58831efcc7
commit
93651408a6
2 changed files with 27 additions and 0 deletions
|
@ -47,4 +47,5 @@ Ivan Pekov <ivan@mrivanplays.com>
|
|||
Camotoy <20743703+Camotoy@users.noreply.github.com>
|
||||
Bjarne Koll <git@lynxplay.dev>
|
||||
MeFisto94 <MeFisto94@users.noreply.github.com>
|
||||
Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||||
```
|
||||
|
|
26
Spigot-Server-Patches/Remove-interact-event-from-boat.patch
Normal file
26
Spigot-Server-Patches/Remove-interact-event-from-boat.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
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);
|
Loading…
Reference in a new issue