Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tahgcraft.adventuremode;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.multiplayer.PlayerControllerMP;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.world.WorldSettings.GameType;
- import cpw.mods.fml.common.ObfuscationReflectionHelper;
- public class ClientProxy extends CommonProxy {
- @Override
- GameType getGameType(EntityPlayer player) {
- return ObfuscationReflectionHelper.getPrivateValue(PlayerControllerMP.class, Minecraft.getMinecraft().playerController, "currentGameType");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement