Update Fireballs to account for ExplosionPower. Fixes BUKKIT-3460

Adds BUKKIT-3516
This commit is contained in:
feildmaster
2013-01-27 14:46:58 -06:00
parent f20d6e3595
commit 1053a1e29d
3 changed files with 21 additions and 1 deletions

View File

@@ -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");
}
}
}