This commit is contained in:
aPunch 2012-01-15 01:04:08 -06:00
parent 04ab5a36ef
commit d6a907d7e5
1 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,9 @@ import net.minecraft.server.World;
public class CraftNPC extends EntityPlayer {
public CraftNPC(MinecraftServer minecraftserver, World world, String s, ItemInWorldManager iteminworldmanager) {
super(minecraftserver, world, s, iteminworldmanager);
iteminworldmanager.setGameMode(0);
public CraftNPC(MinecraftServer minecraftServer, World world, String string, ItemInWorldManager itemInWorldManager) {
super(minecraftServer, world, string, itemInWorldManager);
itemInWorldManager.setGameMode(0);
NPCSocket socket = new NPCSocket();
@ -23,8 +23,8 @@ public class CraftNPC extends EntityPlayer {
return false;
}
});
this.netServerHandler = new NPCNetHandler(minecraftserver, netMgr, this);
netMgr.a(this.netServerHandler);
netServerHandler = new NPCNetHandler(minecraftServer, netMgr, this);
netMgr.a(netServerHandler);
try {
socket.close();