Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brokkonaut <[email protected]>
Date: Sun, 23 Nov 2025 04:54:17 +0100
Subject: [PATCH] Fix crash when explosion has no power


diff --git a/net/minecraft/world/level/ServerExplosion.java b/net/minecraft/world/level/ServerExplosion.java
index 1c521f9f32340cf75310686c90777e521ac3ae5c..b08e767061f3177ca60ab332ba3ac43f13da33be 100644
--- a/net/minecraft/world/level/ServerExplosion.java
+++ b/net/minecraft/world/level/ServerExplosion.java
@@ -478,6 +478,11 @@ public class ServerExplosion implements Explosion {
}

private void hurtEntities() {
+ // Paper start - fix crash when explosion has no power
+ if (this.radius <= 0) {
+ return;
+ }
+ // Paper end - fix crash when explosion has no power
float f = this.radius * 2.0F;
int floor = Mth.floor(this.center.x - f - 1.0);
int floor1 = Mth.floor(this.center.x + f + 1.0);
Loading