Even more patches for 1.14
This commit is contained in:
@@ -5,14 +5,15 @@ Subject: [PATCH] PlayerElytraBoostEvent
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ItemFireworks.java b/src/main/java/net/minecraft/server/ItemFireworks.java
|
||||
index dbb422e9da..13938775ba 100644
|
||||
index aea46ffae..9e86ef4ce 100644
|
||||
--- a/src/main/java/net/minecraft/server/ItemFireworks.java
|
||||
+++ b/src/main/java/net/minecraft/server/ItemFireworks.java
|
||||
@@ -0,0 +0,0 @@ public class ItemFireworks extends Item {
|
||||
EntityFireworks entityfireworks = new EntityFireworks(world, itemstack, entityhuman);
|
||||
entityfireworks.spawningEntity = entityhuman.getUniqueID(); // Paper
|
||||
|
||||
// Paper start
|
||||
final EntityFireworks entityfireworks = new EntityFireworks(world, itemstack, entityhuman);
|
||||
entityfireworks.spawningEntity = entityhuman.getUniqueID();
|
||||
- world.addEntity(entityfireworks);
|
||||
- // Paper end
|
||||
- if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
- itemstack.subtract(1);
|
||||
+ // Paper start
|
||||
@@ -23,8 +24,9 @@ index dbb422e9da..13938775ba 100644
|
||||
+ } else ((EntityPlayer) entityhuman).getBukkitEntity().updateInventory();
|
||||
+ } else if (entityhuman instanceof EntityPlayer) {
|
||||
+ ((EntityPlayer) entityhuman).getBukkitEntity().updateInventory();
|
||||
+ // Paper end
|
||||
}
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
return new InteractionResultWrapper<>(EnumInteractionResult.SUCCESS, entityhuman.b(enumhand));
|
||||
--
|
||||
Reference in New Issue
Block a user