diff options
-rw-r--r-- | src/main/java/net/minecraft/server/Explosion.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java index 4db1a31a..67fdefdd 100644 --- a/src/main/java/net/minecraft/server/Explosion.java +++ b/src/main/java/net/minecraft/server/Explosion.java @@ -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; |