mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-19 03:39:14 +00:00
Fix a server crash relating to a client-side only class initialization (credit to @kosakriszi). Closes #1442.
This commit is contained in:
1 parent
ff1b3b792e
commit
4d0f276e55
3 files changed
+15
-7
No files matched your search
@@ -144,6 +144,7 @@ import cpw.mods.fml.client.FMLClientHandler;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -554,4 +555,10 @@ public class ClientProxy extends CommonProxy
|
||||
MekanismClient.voiceClient.start();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityPlayer getPlayer(MessageContext context)
|
||||
{
|
||||
return Minecraft.getMinecraft().thePlayer;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user