@@ -10,8 +10,8 @@
|
||||
+
|
||||
public abstract class AbstractWindCharge extends EntityFireball implements ItemSupplier {
|
||||
|
||||
public static final ExplosionDamageCalculator EXPLOSION_DAMAGE_CALCULATOR = new SimpleExplosionDamageCalculator(true, false, Optional.empty(), BuiltInRegistries.BLOCK.getTag(TagsBlock.BLOCKS_WIND_CHARGE_EXPLOSIONS).map(Function.identity()));
|
||||
@@ -113,7 +117,7 @@
|
||||
public static final ExplosionDamageCalculator EXPLOSION_DAMAGE_CALCULATOR = new SimpleExplosionDamageCalculator(true, false, Optional.empty(), BuiltInRegistries.BLOCK.get(TagsBlock.BLOCKS_WIND_CHARGE_EXPLOSIONS).map(Function.identity()));
|
||||
@@ -111,7 +115,7 @@
|
||||
Vec3D vec3d1 = movingobjectpositionblock.getLocation().add(vec3d);
|
||||
|
||||
this.explode(vec3d1);
|
||||
@@ -20,7 +20,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -122,7 +126,7 @@
|
||||
@@ -120,7 +124,7 @@
|
||||
protected void onHit(MovingObjectPosition movingobjectposition) {
|
||||
super.onHit(movingobjectposition);
|
||||
if (!this.level().isClientSide) {
|
||||
@@ -29,9 +29,9 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -157,7 +161,7 @@
|
||||
@@ -155,7 +159,7 @@
|
||||
public void tick() {
|
||||
if (!this.level().isClientSide && this.getBlockY() > this.level().getMaxBuildHeight() + 30) {
|
||||
if (!this.level().isClientSide && this.getBlockY() > this.level().getMaxY() + 30) {
|
||||
this.explode(this.position());
|
||||
- this.discard();
|
||||
+ this.discard(EntityRemoveEvent.Cause.OUT_OF_WORLD); // CraftBukkit - add Bukkit remove cause
|
||||
|
||||
Reference in New Issue
Block a user