diff --git a/src/main/java/com/garbagemule/MobArena/ArenaListener.java b/src/main/java/com/garbagemule/MobArena/ArenaListener.java index 388cac5..bd2ee0f 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaListener.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaListener.java @@ -439,7 +439,7 @@ public class ArenaListener } } - LivingEntity entity = (LivingEntity) event.getEntity(); + LivingEntity entity = event.getEntity(); if (arena.isRunning() && entity instanceof Slime) monsters.addMonster(entity); diff --git a/src/main/java/com/garbagemule/MobArena/MAUtils.java b/src/main/java/com/garbagemule/MobArena/MAUtils.java index 1799691..c54ff1c 100644 --- a/src/main/java/com/garbagemule/MobArena/MAUtils.java +++ b/src/main/java/com/garbagemule/MobArena/MAUtils.java @@ -427,7 +427,7 @@ public class MAUtils { world.getBlockAt(i,ly1+1,lz2-1).setTypeIdAndData(63, (byte)0x8, false); Sign sign = (Sign) world.getBlockAt(i,ly1+1,lz2-1).getState(); - sign.setLine(0, TextUtils.camelCase((String)iterator.next())); + sign.setLine(0, TextUtils.camelCase(iterator.next())); sign.update(); } world.getBlockAt(lx2-2,ly1+1,lz1+2).setType(Material.IRON_BLOCK); diff --git a/src/main/java/com/garbagemule/MobArena/MonsterManager.java b/src/main/java/com/garbagemule/MobArena/MonsterManager.java index bc1d7da..d04157f 100644 --- a/src/main/java/com/garbagemule/MobArena/MonsterManager.java +++ b/src/main/java/com/garbagemule/MobArena/MonsterManager.java @@ -125,7 +125,7 @@ public class MonsterManager public void removePets(Player p) { for (Wolf w : pets) { - if (w == null || !(w.getOwner() instanceof Player) || !((Player) w.getOwner()).getName().equals(p.getName())) + if (w == null || !(w.getOwner() instanceof Player) || !w.getOwner().getName().equals(p.getName())) continue; w.setOwner(null); diff --git a/src/main/java/com/garbagemule/MobArena/util/inventory/InventoryManager.java b/src/main/java/com/garbagemule/MobArena/util/inventory/InventoryManager.java index e23fdf1..f930381 100644 --- a/src/main/java/com/garbagemule/MobArena/util/inventory/InventoryManager.java +++ b/src/main/java/com/garbagemule/MobArena/util/inventory/InventoryManager.java @@ -52,7 +52,7 @@ public class InventoryManager p.updateInventory(); } - public void restoreInv(Player p) throws FileNotFoundException, IOException, InvalidConfigurationException { + public void restoreInv(Player p) throws IOException, InvalidConfigurationException { // Try to grab the items from memory first ItemStack[] items = this.items.get(p); ItemStack[] armor = this.armor.get(p);