From 943340a9e6be8bf550114a07c63afe176cb73e76 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Wed, 7 Nov 2012 20:24:02 -0800 Subject: [PATCH] Added username to fake player. --- common/buildcraft/core/proxy/CoreProxy.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/core/proxy/CoreProxy.java b/common/buildcraft/core/proxy/CoreProxy.java index 494d2559..613498df 100644 --- a/common/buildcraft/core/proxy/CoreProxy.java +++ b/common/buildcraft/core/proxy/CoreProxy.java @@ -140,7 +140,7 @@ public class CoreProxy { public String playerName() { return ""; } private EntityPlayer createNewPlayer(World world) { - return new EntityPlayer(world) { + EntityPlayer player = new EntityPlayer(world) { @Override public void sendChatToPlayer(String var1) { @@ -157,6 +157,8 @@ public class CoreProxy { } }; + player.username = "[BuildCraft]"; + return player; } public EntityPlayer getBuildCraftPlayer(World world) {