Advertisement
tahg

Untitled

Feb 24th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. package com.tahgcraft.adventuremode;
  2.  
  3. import net.minecraft.client.Minecraft;
  4. import net.minecraft.client.multiplayer.PlayerControllerMP;
  5. import net.minecraft.entity.player.EntityPlayer;
  6. import net.minecraft.world.WorldSettings.GameType;
  7. import cpw.mods.fml.common.ObfuscationReflectionHelper;
  8.  
  9. public class ClientProxy extends CommonProxy {
  10. @Override
  11. GameType getGameType(EntityPlayer player) {
  12. return ObfuscationReflectionHelper.getPrivateValue(PlayerControllerMP.class, Minecraft.getMinecraft().playerController, "currentGameType");
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement