2019-12-23 03:14:11 +01:00
|
|
|
--- a/net/minecraft/server/EntityFireballFireball.java
|
|
|
|
+++ b/net/minecraft/server/EntityFireballFireball.java
|
2020-02-20 23:53:51 +01:00
|
|
|
@@ -18,14 +18,14 @@
|
2019-12-23 03:14:11 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
}));
|
|
|
|
}
|
2020-02-20 23:53:51 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- protected ItemStack l() {
|
|
|
|
+ public ItemStack l() { // PAIL protected -> public
|
|
|
|
return (ItemStack) this.getDataWatcher().get(EntityFireballFireball.f);
|
|
|
|
}
|
|
|
|
|
2019-12-23 03:14:11 +01:00
|
|
|
@@ -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
|
|
|
|
}
|
|
|
|
}
|