From 442445b8ccb76dd5e83d3089dabc0d5ca7aae414 Mon Sep 17 00:00:00 2001 From: Doc Date: Sat, 18 Jan 2025 18:51:54 -0300 Subject: [PATCH] Not filter empty blocks if the explosion is used include fire --- build-data/paper.at | 1 + .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-data/paper.at b/build-data/paper.at index 26cdb6eafe20..7068bbd2b597 100644 --- a/build-data/paper.at +++ b/build-data/paper.at @@ -535,6 +535,7 @@ public net.minecraft.world.level.Level rainLevel public net.minecraft.world.level.Level thread public net.minecraft.world.level.Level thunderLevel public net.minecraft.world.level.NaturalSpawner SPAWNING_CATEGORIES +public net.minecraft.world.level.ServerExplosion fire public net.minecraft.world.level.StructureManager level public net.minecraft.world.level.biome.Biome climateSettings public net.minecraft.world.level.biome.Biome getTemperature(Lnet/minecraft/core/BlockPos;I)F diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 695343364709..a3b618f713f5 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -2170,7 +2170,7 @@ public static ExplodeEvent callExplodeEvent(ServerExplosion serverExplosion, Lis List blockList = new ObjectArrayList<>(); for (int posBlockPositionList = blockPositions.size() - 1; posBlockPositionList >= 0; posBlockPositionList--) { Block bblock = CraftBlock.at(serverExplosion.level(), blockPositions.get(posBlockPositionList)); - if (!bblock.isEmpty()) { + if (!bblock.isEmpty() || serverExplosion.fire) { blockList.add(bblock); } }