Skip to content

Commit

Permalink
modify fake DamageSource generated in EnderDragon break walls
Browse files Browse the repository at this point in the history
This try to fix an issue where the exposed DamageSource can show a bad behaviour
  • Loading branch information
Doc94 committed Jan 27, 2025
1 parent 5bbae33 commit 083f579
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
this.noPhysics = true;
this.phaseManager = new EnderDragonPhaseManager(this);
+ // Paper start - initialize explosion source
+ this.explosionSource = new net.minecraft.world.level.ServerExplosion(level.getMinecraftWorld(), this, null, null, new Vec3(Double.NaN, Double.NaN, Double.NaN), Float.NaN, true, net.minecraft.world.level.Explosion.BlockInteraction.DESTROY);
+ this.explosionSource = new net.minecraft.world.level.ServerExplosion(level.getMinecraftWorld(), this, level.damageSources().explosion(this, null), null, new Vec3(Double.NaN, Double.NaN, Double.NaN), Float.NaN, true, net.minecraft.world.level.Explosion.BlockInteraction.DESTROY);
+ this.explosionSource.yield = 0f;
+ // Paper end - initialize explosion source
}
Expand Down

0 comments on commit 083f579

Please sign in to comment.