diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityLargeFireball.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityLargeFireball.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityLargeFireball.java b/src/main/java/net/minecraft/server/EntityLargeFireball.java index 88b0d84a..0aebd902 100644 --- a/src/main/java/net/minecraft/server/EntityLargeFireball.java +++ b/src/main/java/net/minecraft/server/EntityLargeFireball.java @@ -33,4 +33,17 @@ public class EntityLargeFireball extends EntityFireball { this.die(); } } + + public void b(NBTTagCompound nbttagcompound) { + super.b(nbttagcompound); + nbttagcompound.setInt("ExplosionPower", this.e); + } + + public void a(NBTTagCompound nbttagcompound) { + super.a(nbttagcompound); + if (nbttagcompound.hasKey("ExplosionPower")) { + // CraftBukkit - set yield when setting explosionpower + this.yield = this.e = nbttagcompound.getInt("ExplosionPower"); + } + } } |