13
0
geforkt von Mirrors/Paper
Paper/nms-patches/EntityFireballFireball.patch

20 Zeilen
936 B
Diff

--- a/net/minecraft/server/EntityFireballFireball.java
+++ b/net/minecraft/server/EntityFireballFireball.java
2020-06-25 02:00:00 +02:00
@@ -18,7 +18,7 @@
2020-06-25 02:00:00 +02:00
public void setItem(ItemStack itemstack) {
if (itemstack.getItem() != Items.FIRE_CHARGE || itemstack.hasTag()) {
2020-06-25 02:00:00 +02:00
- this.getDataWatcher().set(EntityFireballFireball.e, SystemUtils.a((Object) itemstack.cloneItemStack(), (itemstack1) -> {
+ this.getDataWatcher().set(EntityFireballFireball.e, SystemUtils.a(itemstack.cloneItemStack(), (itemstack1) -> { // CraftBukkit - decompile error
itemstack1.setCount(1);
}));
}
@@ -50,6 +50,6 @@
2020-06-25 02:00:00 +02:00
super.loadData(nbttagcompound);
ItemStack itemstack = ItemStack.a(nbttagcompound.getCompound("Item"));
2020-06-25 02:00:00 +02:00
- this.setItem(itemstack);
+ if (!itemstack.isEmpty()) this.setItem(itemstack); // CraftBukkit - SPIGOT-5474 probably came from bugged earlier versions
}
}