mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +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
@@ -84,6 +84,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.FMLInjectionData;
|
||||
|
||||
@@ -459,4 +460,10 @@ public class CommonProxy
|
||||
|
||||
Mekanism.logger.info("Received config from server.");
|
||||
}
|
||||
|
||||
public EntityPlayer getPlayer(MessageContext context)
|
||||
{
|
||||
|
||||
return context.getServerHandler().playerEntity;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user