mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-5474: Just ignore bugged fireball data
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a813637b22
commit
36321c9b3c
1 changed files with 19 additions and 0 deletions
19
paper-server/nms-patches/EntityFireballFireball.patch
Normal file
19
paper-server/nms-patches/EntityFireballFireball.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/net/minecraft/server/EntityFireballFireball.java
|
||||
+++ b/net/minecraft/server/EntityFireballFireball.java
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
public void b(ItemStack itemstack) {
|
||||
if (itemstack.getItem() != Items.FIRE_CHARGE || itemstack.hasTag()) {
|
||||
- this.getDataWatcher().set(EntityFireballFireball.f, SystemUtils.a((Object) itemstack.cloneItemStack(), (itemstack1) -> {
|
||||
+ this.getDataWatcher().set(EntityFireballFireball.f, SystemUtils.a(itemstack.cloneItemStack(), (itemstack1) -> { // CraftBukkit - decompile error
|
||||
itemstack1.setCount(1);
|
||||
}));
|
||||
}
|
||||
@@ -50,6 +50,6 @@
|
||||
super.a(nbttagcompound);
|
||||
ItemStack itemstack = ItemStack.a(nbttagcompound.getCompound("Item"));
|
||||
|
||||
- this.b(itemstack);
|
||||
+ if (!itemstack.isEmpty()) this.b(itemstack); // CraftBukkit - SPIGOT-5474 probably came from bugged earlier versions
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue