Added username to fake player.
This commit is contained in:
parent
943340a9e6
commit
7693107e0a
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,7 @@ public class CoreProxyClient extends CoreProxy {
|
|||
}
|
||||
|
||||
private EntityPlayer createNewPlayer(World world) {
|
||||
return new EntityPlayer(world) {
|
||||
EntityPlayer player = new EntityPlayer(world) {
|
||||
@Override public void sendChatToPlayer(String var1) {}
|
||||
@Override
|
||||
public boolean canCommandSenderUseCommand(int var1, String var2) {
|
||||
|
@ -155,6 +155,8 @@ public class CoreProxyClient extends CoreProxy {
|
|||
return null;
|
||||
}
|
||||
};
|
||||
player.username = "[BuildCraft]";
|
||||
return player;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue