diff --git a/src/main/java/io/wdsj/hybridfix/handler/ExplosionHandler.java b/src/main/java/io/wdsj/hybridfix/handler/ExplosionHandler.java index 81ad8cc..2bfdcc0 100644 --- a/src/main/java/io/wdsj/hybridfix/handler/ExplosionHandler.java +++ b/src/main/java/io/wdsj/hybridfix/handler/ExplosionHandler.java @@ -32,7 +32,6 @@ public void onExplosionDetonate(ExplosionEvent.Detonate event) { Location location = new Location(bworld, explosionPos.x, explosionPos.y, explosionPos.z); List bukkitBlocks; boolean cancelled; - float yield; final List blockList = Lists.newArrayList(); List affectedBlockPositions = event.getAffectedBlocks(); for (int i1 = affectedBlockPositions.size() - 1; i1 >= 0; i1--) { @@ -47,13 +46,11 @@ public void onExplosionDetonate(ExplosionEvent.Detonate event) { Bukkit.getServer().getPluginManager().callEvent(bukkitEvent); cancelled = bukkitEvent.isCancelled(); bukkitBlocks = bukkitEvent.blockList(); - yield = bukkitEvent.getYield(); } else { BlockExplodeEvent bukkitEvent = new BlockExplodeEvent(location.getBlock(), blockList, 1.0F / explosion.size); Bukkit.getServer().getPluginManager().callEvent(bukkitEvent); cancelled = bukkitEvent.isCancelled(); bukkitBlocks = bukkitEvent.blockList(); - yield = bukkitEvent.getYield(); } explosion.getAffectedBlockPositions().clear(); @@ -64,7 +61,6 @@ public void onExplosionDetonate(ExplosionEvent.Detonate event) { BlockPos coords = new BlockPos(bblock.getX(), bblock.getY(), bblock.getZ()); explosion.getAffectedBlockPositions().add(coords); } - explosion.size = yield * explosion.size; } } }