2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/projectile/EntityFireballFireball.java
|
|
|
|
+++ b/net/minecraft/world/entity/projectile/EntityFireballFireball.java
|
2024-06-14 01:05:00 +10:00
|
|
|
@@ -58,7 +58,12 @@
|
2024-04-24 01:15:00 +10:00
|
|
|
public void readAdditionalSaveData(NBTTagCompound nbttagcompound) {
|
2021-11-22 09:00:00 +11:00
|
|
|
super.readAdditionalSaveData(nbttagcompound);
|
2024-04-24 01:15:00 +10:00
|
|
|
if (nbttagcompound.contains("Item", 10)) {
|
|
|
|
- this.setItem((ItemStack) ItemStack.parse(this.registryAccess(), nbttagcompound.getCompound("Item")).orElse(this.getDefaultItem()));
|
|
|
|
+ // CraftBukkit start - SPIGOT-5474 probably came from bugged earlier versions
|
|
|
|
+ ItemStack itemstack = (ItemStack) ItemStack.parse(this.registryAccess(), nbttagcompound.getCompound("Item")).orElse(this.getDefaultItem());
|
|
|
|
+ if (!itemstack.isEmpty()) {
|
|
|
|
+ this.setItem(itemstack);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
} else {
|
|
|
|
this.setItem(this.getDefaultItem());
|
|
|
|
}
|