Skip to content

Commit

Permalink
Not filter empty blocks if the explosion is used include fire
Browse files Browse the repository at this point in the history
  • Loading branch information
Doc94 committed Jan 18, 2025
1 parent 9e1cffd commit 442445b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build-data/paper.at
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ public static ExplodeEvent callExplodeEvent(ServerExplosion serverExplosion, Lis
List<Block> 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);
}
}
Expand Down

0 comments on commit 442445b

Please sign in to comment.