Added username to fake player.

This commit is contained in:
CovertJaguar 2012-11-07 20:24:02 -08:00
parent 26213ba615
commit 943340a9e6

View file

@ -140,7 +140,7 @@ public class CoreProxy {
public String playerName() { return ""; } public String playerName() { return ""; }
private EntityPlayer createNewPlayer(World world) { private EntityPlayer createNewPlayer(World world) {
return new EntityPlayer(world) { EntityPlayer player = new EntityPlayer(world) {
@Override @Override
public void sendChatToPlayer(String var1) { public void sendChatToPlayer(String var1) {
@ -157,6 +157,8 @@ public class CoreProxy {
} }
}; };
player.username = "[BuildCraft]";
return player;
} }
public EntityPlayer getBuildCraftPlayer(World world) { public EntityPlayer getBuildCraftPlayer(World world) {