diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$12.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$12.class index 8b9dabc..d3d713c 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$12.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$12.class differ diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$13.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$13.class index 425ad6f..6fce4e4 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$13.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$13.class differ diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$14.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$14.class index 70b9ca4..5921102 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$14.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$14.class differ diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$15.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$15.class index 3c356ef..739b3fe 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$15.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$15.class differ diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$16.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$16.class index 983a1f2..88bc127 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$16.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$16.class differ diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$17.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$17.class index 722e969..e999291 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$17.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener$17.class differ diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class index b3b18bf..23b3ba7 100644 Binary files a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class and b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class differ diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index 215f318..3602dfa 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -7127,22 +7127,24 @@ public ItemStack getGoodie() { } } e.setDamage(0); - for (int k=-1;k<2;k++) { - for (int j=-1;j<2;j++) { - Location checkloc = enemy.getLocation().add(k,1,j); - Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); - if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { - bl.breakNaturally(); - } - bl = Bukkit.getWorld("world").getBlockAt(checkloc); - checkloc = enemy.getLocation().add(k,2,j); - if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { - bl.breakNaturally(); - } - bl = Bukkit.getWorld("world").getBlockAt(checkloc); - checkloc = enemy.getLocation().add(k,0,j); - if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { - bl.breakNaturally(); + if (!enemy.isDead()) { + for (int k=-1;k<2;k++) { + for (int j=-1;j<2;j++) { + Location checkloc = enemy.getLocation().add(k,1,j); + Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); + if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { + bl.breakNaturally(); + } + bl = Bukkit.getWorld("world").getBlockAt(checkloc); + checkloc = enemy.getLocation().add(k,2,j); + if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { + bl.breakNaturally(); + } + bl = Bukkit.getWorld("world").getBlockAt(checkloc); + checkloc = enemy.getLocation().add(k,0,j); + if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { + bl.breakNaturally(); + } } } } @@ -7226,22 +7228,24 @@ public ItemStack getGoodie() { } } } - for (int k=-2;k<3;k++) { - for (int j=-2;j<3;j++) { - Location checkloc = enemy.getLocation().add(k,1,j); - Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); - if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { - bl.breakNaturally(); - } - bl = Bukkit.getWorld("world").getBlockAt(checkloc); - checkloc = enemy.getLocation().add(k,2,j); - if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { - bl.breakNaturally(); - } - bl = Bukkit.getWorld("world").getBlockAt(checkloc); - checkloc = enemy.getLocation().add(k,0,j); - if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { - bl.breakNaturally(); + if (!enemy.isDead()) { + for (int k=-2;k<3;k++) { + for (int j=-2;j<3;j++) { + Location checkloc = enemy.getLocation().add(k,1,j); + Block bl = Bukkit.getWorld("world").getBlockAt(checkloc); + if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { + bl.breakNaturally(); + } + bl = Bukkit.getWorld("world").getBlockAt(checkloc); + checkloc = enemy.getLocation().add(k,2,j); + if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { + bl.breakNaturally(); + } + bl = Bukkit.getWorld("world").getBlockAt(checkloc); + checkloc = enemy.getLocation().add(k,0,j); + if (bl.getType()!=Material.BEDROCK && bl.getType()!=Material.ENDER_PORTAL_FRAME && bl.getType()!=Material.ENDER_PORTAL && bl.getType()!=Material.MOB_SPAWNER) { + bl.breakNaturally(); + } } } }