3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

Changing the blockList on explosions now correctly updates which blocks are changed

Dieser Commit ist enthalten in:
Nathan Adams 2011-10-11 00:37:39 +01:00
Ursprung 7e005474b6
Commit a49a358349

Datei anzeigen

@ -194,6 +194,15 @@ public class Explosion {
EntityExplodeEvent event = new EntityExplodeEvent(explode, location, blockList);
this.world.getServer().getPluginManager().callEvent(event);
arraylist.clear();
blocks.clear();
for (org.bukkit.block.Block block : event.blockList()) {
ChunkCoordinates coords = new ChunkCoordinates(block.getX(), block.getY(), block.getZ());
arraylist.add(coords);
blocks.add(coords);
}
if (event.isCancelled()) {
this.wasCanceled = true;