mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
eed041d629
By: md_5 <git@md-5.net>
16 lines
941 B
Diff
16 lines
941 B
Diff
--- a/net/minecraft/world/entity/projectile/EntityFireballFireball.java
|
|
+++ b/net/minecraft/world/entity/projectile/EntityFireballFireball.java
|
|
@@ -58,7 +58,12 @@
|
|
public void readAdditionalSaveData(NBTTagCompound nbttagcompound) {
|
|
super.readAdditionalSaveData(nbttagcompound);
|
|
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());
|
|
}
|