@@ -20,8 +20,8 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -25,7 +29,15 @@
|
||||
|
||||
@@ -18,7 +22,15 @@
|
||||
if (!this.world.isClientSide) {
|
||||
boolean flag = this.world.getGameRules().getBoolean(GameRules.MOB_GRIEFING);
|
||||
|
||||
- this.world.createExplosion((Entity) null, this.locX(), this.locY(), this.locZ(), (float) this.yield, flag, flag ? Explosion.Effect.DESTROY : Explosion.Effect.NONE);
|
||||
@@ -37,9 +37,9 @@
|
||||
this.die();
|
||||
}
|
||||
|
||||
@@ -41,7 +53,8 @@
|
||||
public void a(NBTTagCompound nbttagcompound) {
|
||||
super.a(nbttagcompound);
|
||||
@@ -49,7 +61,8 @@
|
||||
public void loadData(NBTTagCompound nbttagcompound) {
|
||||
super.loadData(nbttagcompound);
|
||||
if (nbttagcompound.hasKeyOfType("ExplosionPower", 99)) {
|
||||
- this.yield = nbttagcompound.getInt("ExplosionPower");
|
||||
+ // CraftBukkit - set bukkitYield when setting explosionpower
|
||||
|
||||
Reference in New Issue
Block a user