Updated against new mc-dev format, takes out quite some casting troubles at the cost of extra ()'s

By: Erik Broes <erikbroes@ripe.net>
This commit is contained in:
CraftBukkit/Spigot 2011-01-11 09:25:13 +01:00
parent 5b605fdc4f
commit 870ee0b0ec
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
} }
public boolean isOnline() { public boolean isOnline() {
for (EntityPlayerMP player : server.getHandle().b) { for (Object obj: server.getHandle().b) {
EntityPlayerMP player = (EntityPlayerMP) obj;
if (player.aw.equalsIgnoreCase(getName())) { if (player.aw.equalsIgnoreCase(getName())) {
return true; return true;
} }

View file

@ -1,7 +1,6 @@
package org.bukkit.craftbukkit; package org.bukkit.craftbukkit;
import org.bukkit.Entity; import org.bukkit.Entity;
import org.bukkit.Vector;
import org.bukkit.Vehicle; import org.bukkit.Vehicle;
/** /**