public void a(NBTTagCompound nbttagcompound) { super.a(nbttagcompound); if (nbttagcompound.b("playerGameType")) { // XXX Check this, it was only the last call to this.c.a if (MinecraftServer.D().am()) { this.c.a(MinecraftServer.D().g()); } else { this.c.a(EnumGameType.a(nbttagcompound.e("playerGameType"))); } } }
public void a(EnumGameType enumgametype) { this.c.a(enumgametype); this.a.b(new Packet70GameEvent(3, enumgametype.a())); }