SHARE
TWEET

Untitled

Mykeware Nov 4th, 2016 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [21:50:35] [Server thread/ERROR] [FML/]: FMLIndexedMessageCodec exception caught
  2. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  5.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  6.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  7.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  8.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  9.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  10.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  11.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  12.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  13.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  14.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  15.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  16.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  17.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  18.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  19.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  20.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  21.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  22.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  23.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  24.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  25.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  26.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  27.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  28.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  29. Caused by: java.lang.NullPointerException
  30.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  31.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  32.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  33.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  34.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  35.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  36.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  37.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  38.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  39.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  40.     ... 25 more
  41. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  42. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  43.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  44.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  45.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  46.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  47.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  48.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  49.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  50.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  51.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  52.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  53.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  54.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  55.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  56.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  57.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  58.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  59.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  60.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  61.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  62.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  63.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  64.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  65.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  66.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  67.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  68.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  69. Caused by: java.lang.NullPointerException
  70.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  71.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  72.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  73.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  74.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  75.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  76.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  77.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  78.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  79.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  80.     ... 25 more
  81. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  82. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  83.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  84.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  85.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  86.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  87.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  88.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  89.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  90.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  91.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  92.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  93.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  94.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  95.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  96.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  97.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  98.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  99.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  100.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  101.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  102.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  103.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  104.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  105.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  106.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  107.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  108.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  109. Caused by: java.lang.NullPointerException
  110.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  111.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  112.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  113.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  114.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  115.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  116.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  117.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  118.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  119.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  120.     ... 25 more
  121. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  122. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  123.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  124.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  125.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  126.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  127.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  128.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  129.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  130.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  131.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  132.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  133.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  134.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  135.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  136.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  137.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  138.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  139.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  140.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  141.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  142.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  143.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  144.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  145.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  146.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  147.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  148.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  149. Caused by: java.lang.NullPointerException
  150.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  151.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  152.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  153.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  154.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  155.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  156.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  157.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  158.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  159.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  160.     ... 25 more
  161. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  162. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  163.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  164.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  165.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  166.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  167.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  168.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  169.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  170.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  171.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  172.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  173.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  174.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  175.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  176.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  177.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  178.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  179.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  180.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  181.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  182.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  183.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  184.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  185.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  186.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  187.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  188.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  189. Caused by: java.lang.NullPointerException
  190.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  191.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  192.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  193.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  194.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  195.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  196.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  197.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  198.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  199.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  200.     ... 25 more
  201. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  202. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  203.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  204.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  205.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  206.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  207.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  208.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  209.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  210.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  211.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  212.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  213.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  214.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  215.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  216.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  217.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  218.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  219.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  220.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  221.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  222.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  223.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  224.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  225.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  226.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  227.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  228.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  229. Caused by: java.lang.NullPointerException
  230.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  231.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  232.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  233.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  234.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  235.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  236.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  237.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  238.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  239.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  240.     ... 25 more
  241. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  242. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  243.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  244.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  245.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  246.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  247.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  248.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  249.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  250.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  251.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  252.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  253.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  254.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  255.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  256.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  257.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  258.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  259.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  260.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  261.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  262.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  263.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  264.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  265.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  266.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  267.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  268.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  269. Caused by: java.lang.NullPointerException
  270.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  271.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  272.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  273.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  274.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  275.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  276.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  277.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  278.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  279.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  280.     ... 25 more
  281. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  282. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  283.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  284.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  285.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  286.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  287.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  288.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  289.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  290.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  291.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  292.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  293.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  294.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  295.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  296.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  297.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  298.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  299.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  300.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  301.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  302.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  303.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  304.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  305.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  306.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  307.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  308.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  309. Caused by: java.lang.NullPointerException
  310.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  311.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  312.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  313.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  314.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  315.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  316.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  317.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  318.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  319.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  320.     ... 25 more
  321. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  322. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  323.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  324.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  325.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  326.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  327.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  328.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  329.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  330.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  331.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  332.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  333.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  334.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  335.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  336.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  337.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  338.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  339.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  340.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  341.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  342.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  343.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  344.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  345.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  346.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  347.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  348.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  349. Caused by: java.lang.NullPointerException
  350.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  351.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  352.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  353.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  354.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  355.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  356.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  357.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  358.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  359.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  360.     ... 25 more
  361. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  362. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  363.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  364.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  365.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  366.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  367.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  368.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  369.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  370.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  371.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  372.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  373.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  374.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  375.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  376.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  377.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  378.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  379.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  380.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  381.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  382.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  383.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  384.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  385.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  386.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  387.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  388.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  389. Caused by: java.lang.NullPointerException
  390.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  391.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  392.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  393.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  394.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  395.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  396.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  397.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  398.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  399.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  400.     ... 25 more
  401. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  402. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  403.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  404.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  405.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  406.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  407.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  408.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  409.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  410.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  411.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  412.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  413.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  414.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  415.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  416.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  417.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  418.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  419.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  420.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  421.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  422.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  423.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  424.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  425.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  426.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  427.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  428.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  429. Caused by: java.lang.NullPointerException
  430.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  431.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  432.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  433.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  434.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  435.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  436.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  437.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  438.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  439.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  440.     ... 25 more
  441. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  442. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  443.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  444.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  445.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  446.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  447.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  448.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  449.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  450.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  451.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  452.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  453.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  454.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  455.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  456.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  457.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  458.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  459.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  460.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  461.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  462.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  463.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  464.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  465.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  466.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  467.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  468.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  469. Caused by: java.lang.NullPointerException
  470.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  471.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  472.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  473.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  474.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  475.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  476.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  477.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  478.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  479.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  480.     ... 25 more
  481. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  482. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  483.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  484.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  485.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  486.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  487.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  488.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  489.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  490.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  491.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  492.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  493.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  494.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  495.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  496.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  497.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  498.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  499.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  500.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  501.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  502.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  503.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  504.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  505.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  506.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  507.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  508.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  509. Caused by: java.lang.NullPointerException
  510.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  511.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  512.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  513.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  514.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  515.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  516.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  517.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  518.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  519.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  520.     ... 25 more
  521. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  522. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  523.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  524.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  525.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  526.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  527.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  528.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  529.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  530.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  531.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  532.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  533.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  534.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  535.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  536.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  537.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  538.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  539.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  540.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  541.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  542.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  543.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  544.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  545.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  546.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  547.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  548.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  549. Caused by: java.lang.NullPointerException
  550.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  551.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  552.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  553.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  554.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  555.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  556.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  557.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  558.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  559.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  560.     ... 25 more
  561. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  562. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  563.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  564.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  565.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  566.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  567.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  568.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  569.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  570.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  571.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  572.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  573.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  574.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  575.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  576.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  577.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  578.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  579.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  580.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  581.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  582.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  583.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  584.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  585.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  586.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  587.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  588.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  589. Caused by: java.lang.NullPointerException
  590.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  591.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  592.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  593.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  594.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  595.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  596.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  597.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  598.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  599.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  600.     ... 25 more
  601. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  602. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  603.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  604.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  605.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  606.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  607.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  608.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  609.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  610.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  611.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  612.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  613.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  614.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  615.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  616.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  617.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  618.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  619.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  620.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  621.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  622.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  623.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  624.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  625.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  626.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  627.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  628.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  629. Caused by: java.lang.NullPointerException
  630.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  631.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  632.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  633.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  634.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  635.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  636.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  637.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  638.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  639.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  640.     ... 25 more
  641. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  642. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  643.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  644.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  645.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  646.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  647.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  648.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  649.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  650.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  651.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  652.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  653.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  654.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  655.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  656.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  657.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  658.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  659.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  660.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  661.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  662.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  663.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  664.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  665.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  666.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  667.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  668.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  669. Caused by: java.lang.NullPointerException
  670.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  671.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  672.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  673.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  674.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  675.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  676.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  677.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  678.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  679.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  680.     ... 25 more
  681. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  682. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  683.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  684.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  685.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  686.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  687.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  688.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  689.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  690.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  691.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  692.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  693.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  694.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  695.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  696.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  697.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  698.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  699.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  700.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  701.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  702.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  703.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  704.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  705.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  706.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  707.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  708.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  709. Caused by: java.lang.NullPointerException
  710.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  711.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  712.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  713.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  714.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  715.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  716.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  717.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  718.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  719.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  720.     ... 25 more
  721. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  722. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  723.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  724.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  725.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  726.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  727.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  728.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  729.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  730.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  731.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  732.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  733.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  734.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  735.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  736.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  737.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  738.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  739.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  740.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  741.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  742.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  743.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  744.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  745.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  746.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  747.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  748.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  749. Caused by: java.lang.NullPointerException
  750.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  751.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  752.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  753.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  754.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  755.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  756.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  757.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  758.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  759.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  760.     ... 25 more
  761. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  762. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  763.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  764.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  765.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  766.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  767.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  768.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  769.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  770.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  771.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  772.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  773.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  774.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  775.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  776.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  777.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  778.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  779.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  780.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  781.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  782.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  783.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  784.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  785.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  786.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  787.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  788.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  789. Caused by: java.lang.NullPointerException
  790.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  791.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  792.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  793.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  794.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  795.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  796.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  797.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  798.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  799.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  800.     ... 25 more
  801. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  802. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  803.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  804.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  805.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  806.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  807.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  808.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  809.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  810.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  811.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  812.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  813.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  814.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  815.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  816.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  817.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  818.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  819.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  820.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  821.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  822.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  823.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  824.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  825.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  826.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  827.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  828.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  829. Caused by: java.lang.NullPointerException
  830.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  831.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  832.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  833.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  834.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  835.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  836.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  837.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  838.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  839.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  840.     ... 25 more
  841. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  842. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  843.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  844.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  845.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  846.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  847.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  848.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  849.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  850.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  851.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  852.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  853.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  854.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  855.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  856.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  857.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  858.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  859.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  860.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  861.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  862.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  863.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  864.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  865.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  866.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  867.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  868.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  869. Caused by: java.lang.NullPointerException
  870.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  871.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  872.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  873.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  874.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  875.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  876.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  877.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  878.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  879.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  880.     ... 25 more
  881. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  882. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  883.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  884.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  885.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  886.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  887.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  888.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  889.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  890.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  891.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  892.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  893.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  894.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  895.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  896.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  897.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  898.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  899.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  900.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  901.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  902.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  903.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  904.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  905.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  906.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  907.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  908.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  909. Caused by: java.lang.NullPointerException
  910.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  911.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  912.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  913.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  914.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  915.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  916.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  917.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  918.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  919.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  920.     ... 25 more
  921. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  922. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  923.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  924.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  925.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  926.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  927.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  928.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  929.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  930.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  931.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  932.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  933.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  934.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  935.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  936.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  937.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  938.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  939.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  940.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  941.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  942.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  943.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  944.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  945.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  946.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  947.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  948.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  949. Caused by: java.lang.NullPointerException
  950.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  951.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  952.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  953.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  954.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  955.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  956.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  957.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  958.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  959.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  960.     ... 25 more
  961. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  962. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  963.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  964.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  965.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  966.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  967.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  968.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  969.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  970.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  971.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  972.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  973.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  974.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  975.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  976.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  977.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  978.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  979.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  980.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  981.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  982.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  983.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  984.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  985.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  986.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  987.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  988.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  989. Caused by: java.lang.NullPointerException
  990.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  991.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  992.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  993.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  994.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  995.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  996.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  997.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  998.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  999.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1000.     ... 25 more
  1001. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1002. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1003.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1004.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1005.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1006.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1007.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1008.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1009.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1010.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1011.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1012.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1013.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1014.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1015.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1016.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1017.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1018.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1019.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1020.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1021.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1022.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1023.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1024.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1025.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1026.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1027.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1028.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1029. Caused by: java.lang.NullPointerException
  1030.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1031.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1032.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1033.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1034.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1035.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1036.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1037.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1038.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1039.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1040.     ... 25 more
  1041. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1042. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1043.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1044.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1045.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1046.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1047.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1048.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1049.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1050.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1051.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1052.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1053.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1054.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1055.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1056.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1057.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1058.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1059.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1060.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1061.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1062.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1063.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1064.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1065.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1066.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1067.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1068.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1069. Caused by: java.lang.NullPointerException
  1070.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1071.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1072.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1073.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1074.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1075.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1076.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1077.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1078.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1079.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1080.     ... 25 more
  1081. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1082. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1083.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1084.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1085.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1086.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1087.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1088.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1089.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1090.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1091.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1092.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1093.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1094.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1095.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1096.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1097.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1098.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1099.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1100.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1101.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1102.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1103.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1104.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1105.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1106.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1107.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1108.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1109. Caused by: java.lang.NullPointerException
  1110.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1111.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1112.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1113.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1114.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1115.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1116.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1117.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1118.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1119.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1120.     ... 25 more
  1121. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1122. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1123.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1124.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1125.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1126.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1127.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1128.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1129.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1130.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1131.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1132.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1133.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1134.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1135.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1136.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1137.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1138.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1139.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1140.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1141.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1142.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1143.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1144.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1145.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1146.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1147.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1148.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1149. Caused by: java.lang.NullPointerException
  1150.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1151.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1152.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1153.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1154.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1155.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1156.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1157.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1158.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1159.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1160.     ... 25 more
  1161. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1162. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1163.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1164.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1165.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1166.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1167.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1168.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1169.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1170.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1171.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1172.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1173.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1174.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1175.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1176.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1177.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1178.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1179.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1180.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1181.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1182.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1183.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1184.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1185.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1186.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1187.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1188.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1189. Caused by: java.lang.NullPointerException
  1190.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1191.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1192.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1193.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1194.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1195.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1196.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1197.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1198.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1199.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1200.     ... 25 more
  1201. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1202. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1203.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1204.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1205.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1206.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1207.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1208.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1209.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1210.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1211.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1212.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1213.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1214.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1215.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1216.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1217.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1218.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1219.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1220.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1221.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1222.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1223.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1224.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1225.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1226.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1227.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1228.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1229. Caused by: java.lang.NullPointerException
  1230.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1231.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1232.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1233.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1234.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1235.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1236.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1237.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1238.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1239.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1240.     ... 25 more
  1241. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1242. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1243.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1244.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1245.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1246.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1247.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1248.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1249.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1250.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1251.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1252.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1253.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1254.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1255.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1256.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1257.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1258.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1259.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1260.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1261.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1262.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1263.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1264.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1265.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1266.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1267.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1268.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1269. Caused by: java.lang.NullPointerException
  1270.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1271.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1272.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1273.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1274.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1275.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1276.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1277.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1278.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1279.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1280.     ... 25 more
  1281. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1282. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1283.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1284.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1285.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1286.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1287.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1288.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1289.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1290.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1291.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1292.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1293.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1294.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1295.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1296.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1297.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1298.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1299.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1300.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1301.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1302.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1303.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1304.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1305.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1306.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1307.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1308.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1309. Caused by: java.lang.NullPointerException
  1310.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1311.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1312.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1313.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1314.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1315.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1316.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1317.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1318.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1319.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1320.     ... 25 more
  1321. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1322. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1323.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1324.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1325.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1326.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1327.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1328.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1329.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1330.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1331.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1332.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1333.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1334.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1335.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1336.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1337.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1338.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1339.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1340.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1341.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1342.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1343.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1344.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1345.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1346.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1347.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1348.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1349. Caused by: java.lang.NullPointerException
  1350.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1351.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1352.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1353.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1354.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1355.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1356.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1357.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1358.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1359.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1360.     ... 25 more
  1361. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1362. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1363.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1364.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1365.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1366.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1367.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1368.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1369.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1370.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1371.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1372.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1373.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1374.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1375.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1376.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1377.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1378.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1379.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1380.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1381.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1382.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1383.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1384.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1385.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1386.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1387.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1388.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1389. Caused by: java.lang.NullPointerException
  1390.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1391.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1392.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1393.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1394.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1395.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1396.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1397.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1398.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1399.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1400.     ... 25 more
  1401. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1402. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1403.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1404.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1405.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1406.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1407.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1408.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1409.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1410.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1411.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1412.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1413.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1414.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1415.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1416.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1417.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1418.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1419.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1420.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1421.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1422.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1423.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1424.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1425.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1426.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1427.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1428.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1429. Caused by: java.lang.NullPointerException
  1430.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1431.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1432.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1433.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1434.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1435.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1436.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1437.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1438.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1439.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1440.     ... 25 more
  1441. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1442. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1443.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1444.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1445.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1446.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1447.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1448.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1449.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1450.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1451.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1452.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1453.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1454.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1455.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1456.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1457.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1458.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1459.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1460.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1461.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1462.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1463.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1464.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1465.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1466.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1467.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1468.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1469. Caused by: java.lang.NullPointerException
  1470.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1471.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1472.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1473.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1474.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1475.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1476.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1477.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1478.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1479.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1480.     ... 25 more
  1481. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1482. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1483.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1484.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1485.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1486.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1487.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1488.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1489.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1490.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1491.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1492.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1493.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1494.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1495.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1496.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1497.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1498.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1499.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1500.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1501.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1502.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1503.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1504.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1505.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1506.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1507.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1508.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1509. Caused by: java.lang.NullPointerException
  1510.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1511.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1512.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1513.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1514.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1515.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1516.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1517.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1518.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1519.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1520.     ... 25 more
  1521. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1522. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1523.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1524.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1525.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1526.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1527.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1528.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1529.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1530.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1531.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1532.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1533.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1534.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1535.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1536.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1537.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1538.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1539.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1540.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1541.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1542.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1543.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1544.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1545.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1546.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1547.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1548.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1549. Caused by: java.lang.NullPointerException
  1550.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1551.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1552.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1553.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1554.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1555.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1556.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1557.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1558.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1559.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1560.     ... 25 more
  1561. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1562. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1563.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1564.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1565.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1566.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1567.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1568.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1569.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1570.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1571.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1572.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1573.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1574.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1575.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1576.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1577.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1578.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1579.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1580.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1581.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1582.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1583.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1584.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1585.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1586.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1587.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1588.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1589. Caused by: java.lang.NullPointerException
  1590.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1591.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1592.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1593.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1594.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1595.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1596.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1597.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1598.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1599.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1600.     ... 25 more
  1601. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1602. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1603.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1604.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1605.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1606.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1607.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1608.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1609.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1610.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1611.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1612.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1613.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1614.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1615.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1616.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1617.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1618.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1619.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1620.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1621.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1622.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1623.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1624.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1625.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1626.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1627.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1628.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1629. Caused by: java.lang.NullPointerException
  1630.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1631.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1632.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1633.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1634.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1635.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1636.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1637.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1638.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1639.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1640.     ... 25 more
  1641. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1642. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1643.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1644.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1645.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1646.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1647.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1648.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1649.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1650.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1651.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1652.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1653.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1654.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1655.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1656.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1657.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1658.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1659.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1660.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1661.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1662.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1663.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1664.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1665.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1666.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1667.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1668.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1669. Caused by: java.lang.NullPointerException
  1670.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1671.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1672.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1673.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1674.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1675.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1676.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1677.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1678.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1679.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1680.     ... 25 more
  1681. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1682. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1683.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1684.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1685.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1686.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1687.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1688.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1689.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1690.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1691.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1692.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1693.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1694.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1695.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1696.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1697.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1698.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1699.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1700.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1701.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1702.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1703.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1704.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1705.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1706.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1707.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1708.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1709. Caused by: java.lang.NullPointerException
  1710.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1711.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1712.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1713.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1714.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1715.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1716.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1717.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1718.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1719.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1720.     ... 25 more
  1721. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1722. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1723.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1724.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1725.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1726.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1727.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1728.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1729.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1730.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1731.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1732.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1733.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1734.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1735.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1736.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1737.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1738.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1739.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1740.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1741.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1742.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1743.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1744.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1745.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1746.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1747.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1748.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1749. Caused by: java.lang.NullPointerException
  1750.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1751.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1752.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1753.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1754.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1755.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1756.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1757.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1758.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1759.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1760.     ... 25 more
  1761. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1762. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1763.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1764.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1765.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1766.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1767.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1768.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1769.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1770.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1771.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1772.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1773.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1774.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1775.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1776.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1777.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1778.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1779.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1780.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1781.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1782.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1783.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1784.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1785.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1786.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1787.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1788.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1789. Caused by: java.lang.NullPointerException
  1790.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1791.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1792.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1793.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1794.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1795.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1796.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1797.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1798.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1799.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1800.     ... 25 more
  1801. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1802. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1803.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1804.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1805.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1806.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1807.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1808.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1809.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1810.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1811.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1812.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1813.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1814.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1815.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1816.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1817.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1818.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1819.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1820.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1821.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1822.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1823.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1824.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1825.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1826.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1827.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1828.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1829. Caused by: java.lang.NullPointerException
  1830.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1831.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1832.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1833.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1834.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1835.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1836.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1837.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1838.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1839.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1840.     ... 25 more
  1841. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1842. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1843.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1844.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1845.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1846.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1847.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1848.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1849.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1850.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1851.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1852.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1853.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1854.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1855.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1856.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1857.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1858.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1859.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1860.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1861.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1862.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1863.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1864.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1865.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1866.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1867.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1868.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1869. Caused by: java.lang.NullPointerException
  1870.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1871.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1872.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1873.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1874.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1875.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1876.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1877.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1878.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1879.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1880.     ... 25 more
  1881. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1882. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1883.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1884.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1885.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1886.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1887.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1888.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1889.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1890.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1891.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1892.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1893.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1894.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1895.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1896.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1897.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1898.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1899.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1900.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1901.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1902.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1903.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1904.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1905.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1906.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1907.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1908.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1909. Caused by: java.lang.NullPointerException
  1910.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1911.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1912.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1913.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1914.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1915.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1916.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1917.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1918.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1919.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1920.     ... 25 more
  1921. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1922. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1923.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1924.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1925.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1926.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1927.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1928.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1929.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1930.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1931.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1932.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1933.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1934.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1935.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1936.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1937.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1938.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1939.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1940.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1941.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1942.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1943.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1944.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1945.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1946.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1947.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1948.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1949. Caused by: java.lang.NullPointerException
  1950.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1951.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1952.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1953.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1954.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1955.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1956.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1957.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1958.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1959.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  1960.     ... 25 more
  1961. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  1962. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  1963.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  1964.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  1965.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  1966.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  1967.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  1968.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  1969.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  1970.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  1971.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  1972.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  1973.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  1974.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  1975.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  1976.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  1977.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  1978.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  1979.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  1980.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  1981.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  1982.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  1983.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  1984.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  1985.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  1986.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  1987.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  1988.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  1989. Caused by: java.lang.NullPointerException
  1990.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  1991.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  1992.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  1993.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  1994.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  1995.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  1996.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  1997.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  1998.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  1999.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2000.     ... 25 more
  2001. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2002. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2003.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2004.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2005.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2006.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2007.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2008.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2009.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2010.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2011.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2012.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2013.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2014.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2015.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2016.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2017.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2018.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2019.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2020.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2021.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2022.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2023.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2024.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2025.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2026.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2027.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2028.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2029. Caused by: java.lang.NullPointerException
  2030.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2031.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2032.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2033.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2034.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2035.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2036.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2037.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2038.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2039.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2040.     ... 25 more
  2041. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2042. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2043.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2044.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2045.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2046.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2047.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2048.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2049.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2050.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2051.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2052.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2053.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2054.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2055.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2056.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2057.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2058.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2059.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2060.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2061.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2062.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2063.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2064.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2065.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2066.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2067.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2068.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2069. Caused by: java.lang.NullPointerException
  2070.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2071.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2072.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2073.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2074.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2075.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2076.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2077.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2078.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2079.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2080.     ... 25 more
  2081. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2082. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2083.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2084.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2085.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2086.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2087.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2088.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2089.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2090.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2091.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2092.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2093.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2094.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2095.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2096.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2097.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2098.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2099.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2100.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2101.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2102.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2103.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2104.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2105.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2106.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2107.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2108.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2109. Caused by: java.lang.NullPointerException
  2110.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2111.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2112.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2113.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2114.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2115.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2116.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2117.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2118.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2119.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2120.     ... 25 more
  2121. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2122. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2123.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2124.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2125.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2126.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2127.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2128.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2129.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2130.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2131.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2132.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2133.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2134.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2135.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2136.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2137.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2138.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2139.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2140.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2141.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2142.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2143.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2144.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2145.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2146.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2147.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2148.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2149. Caused by: java.lang.NullPointerException
  2150.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2151.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2152.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2153.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2154.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2155.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2156.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2157.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2158.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2159.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2160.     ... 25 more
  2161. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2162. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2163.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2164.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2165.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2166.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2167.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2168.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2169.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2170.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2171.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2172.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2173.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2174.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2175.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2176.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2177.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2178.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2179.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2180.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2181.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2182.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2183.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2184.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2185.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2186.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2187.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2188.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2189. Caused by: java.lang.NullPointerException
  2190.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2191.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2192.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2193.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2194.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2195.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2196.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2197.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2198.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2199.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2200.     ... 25 more
  2201. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2202. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2203.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2204.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2205.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2206.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2207.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2208.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2209.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2210.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2211.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2212.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2213.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2214.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2215.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2216.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2217.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2218.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2219.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2220.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2221.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2222.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2223.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2224.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2225.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2226.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2227.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2228.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2229. Caused by: java.lang.NullPointerException
  2230.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2231.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2232.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2233.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2234.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2235.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2236.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2237.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2238.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2239.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2240.     ... 25 more
  2241. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2242. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2243.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2244.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2245.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2246.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2247.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2248.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2249.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2250.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2251.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2252.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2253.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2254.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2255.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2256.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2257.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2258.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2259.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2260.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2261.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2262.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2263.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2264.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2265.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2266.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2267.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2268.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2269. Caused by: java.lang.NullPointerException
  2270.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2271.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2272.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2273.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2274.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2275.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2276.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2277.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2278.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2279.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2280.     ... 25 more
  2281. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2282. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2283.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2284.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2285.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2286.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2287.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2288.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2289.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2290.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2291.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2292.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2293.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2294.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2295.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2296.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2297.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2298.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2299.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2300.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2301.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2302.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2303.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2304.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2305.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2306.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2307.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2308.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2309. Caused by: java.lang.NullPointerException
  2310.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2311.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2312.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2313.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2314.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2315.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2316.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2317.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2318.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2319.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2320.     ... 25 more
  2321. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2322. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2323.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2324.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2325.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2326.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2327.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2328.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2329.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2330.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2331.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2332.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2333.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2334.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2335.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2336.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2337.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2338.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2339.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2340.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2341.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2342.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2343.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2344.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2345.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2346.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2347.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2348.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2349. Caused by: java.lang.NullPointerException
  2350.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2351.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2352.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2353.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2354.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2355.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2356.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2357.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2358.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2359.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2360.     ... 25 more
  2361. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2362. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2363.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2364.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2365.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2366.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2367.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2368.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2369.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2370.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2371.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2372.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2373.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2374.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2375.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2376.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2377.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2378.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2379.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2380.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2381.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2382.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2383.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2384.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2385.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2386.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2387.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2388.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2389. Caused by: java.lang.NullPointerException
  2390.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2391.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2392.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2393.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2394.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2395.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2396.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2397.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2398.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2399.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2400.     ... 25 more
  2401. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2402. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2403.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2404.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2405.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2406.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2407.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2408.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2409.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2410.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2411.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2412.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2413.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2414.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2415.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2416.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2417.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2418.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2419.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2420.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2421.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2422.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2423.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2424.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2425.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2426.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2427.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2428.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2429. Caused by: java.lang.NullPointerException
  2430.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2431.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2432.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2433.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2434.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2435.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2436.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2437.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2438.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2439.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2440.     ... 25 more
  2441. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2442. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2443.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2444.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2445.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2446.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2447.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2448.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2449.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2450.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2451.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2452.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2453.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2454.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2455.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2456.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2457.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2458.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2459.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2460.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2461.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2462.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2463.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2464.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2465.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2466.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2467.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2468.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2469. Caused by: java.lang.NullPointerException
  2470.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2471.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2472.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2473.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2474.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2475.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2476.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2477.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2478.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2479.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2480.     ... 25 more
  2481. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2482. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2483.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2484.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2485.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2486.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2487.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2488.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2489.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2490.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2491.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2492.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2493.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2494.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2495.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2496.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2497.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2498.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2499.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2500.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2501.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2502.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2503.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2504.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2505.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2506.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2507.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2508.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2509. Caused by: java.lang.NullPointerException
  2510.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2511.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2512.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2513.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2514.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2515.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2516.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2517.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2518.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2519.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2520.     ... 25 more
  2521. [21:50:35] [Server thread/ERROR] [FML/]: FMLIndexedMessageCodec exception caught
  2522. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2523.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2524.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2525.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2526.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2527.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2528.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2529.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2530.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2531.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2532.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2533.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2534.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2535.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2536.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2537.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2538.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2539.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2540.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2541.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2542.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2543.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2544.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2545.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2546.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2547.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2548.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2549. Caused by: java.lang.NullPointerException
  2550.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2551.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2552.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2553.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2554.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2555.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2556.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2557.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2558.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2559.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2560.     ... 25 more
  2561. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2562. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2563.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2564.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2565.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2566.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2567.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2568.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2569.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2570.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2571.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2572.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2573.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2574.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2575.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2576.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2577.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2578.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2579.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2580.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2581.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2582.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2583.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2584.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2585.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2586.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2587.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2588.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2589. Caused by: java.lang.NullPointerException
  2590.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2591.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2592.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2593.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2594.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2595.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2596.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2597.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2598.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2599.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2600.     ... 25 more
  2601. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2602. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2603.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2604.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2605.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2606.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2607.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2608.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2609.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2610.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2611.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2612.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2613.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2614.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2615.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2616.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2617.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2618.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2619.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2620.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2621.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2622.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2623.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2624.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2625.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2626.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2627.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2628.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2629. Caused by: java.lang.NullPointerException
  2630.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2631.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2632.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2633.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2634.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2635.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2636.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2637.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2638.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2639.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2640.     ... 25 more
  2641. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2642. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2643.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2644.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2645.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2646.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2647.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2648.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2649.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2650.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2651.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2652.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2653.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2654.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2655.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2656.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2657.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2658.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2659.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2660.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2661.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2662.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2663.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2664.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2665.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2666.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2667.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2668.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2669. Caused by: java.lang.NullPointerException
  2670.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2671.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2672.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2673.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2674.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2675.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2676.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2677.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2678.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2679.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2680.     ... 25 more
  2681. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2682. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2683.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2684.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2685.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2686.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2687.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2688.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2689.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2690.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2691.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2692.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2693.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2694.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2695.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2696.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2697.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2698.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2699.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2700.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2701.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2702.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2703.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2704.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2705.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2706.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2707.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2708.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2709. Caused by: java.lang.NullPointerException
  2710.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2711.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2712.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2713.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2714.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2715.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2716.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2717.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2718.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2719.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2720.     ... 25 more
  2721. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2722. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2723.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2724.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2725.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2726.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2727.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2728.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2729.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2730.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2731.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2732.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2733.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2734.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2735.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2736.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2737.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2738.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2739.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2740.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2741.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2742.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2743.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2744.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2745.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2746.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2747.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2748.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2749. Caused by: java.lang.NullPointerException
  2750.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2751.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2752.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2753.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2754.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2755.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2756.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2757.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2758.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2759.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2760.     ... 25 more
  2761. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2762. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2763.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2764.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2765.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2766.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2767.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2768.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2769.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2770.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2771.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2772.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2773.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2774.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2775.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2776.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2777.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2778.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2779.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2780.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2781.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2782.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2783.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2784.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2785.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2786.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2787.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2788.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2789. Caused by: java.lang.NullPointerException
  2790.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2791.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2792.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2793.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2794.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2795.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2796.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2797.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2798.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2799.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2800.     ... 25 more
  2801. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2802. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2803.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2804.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2805.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2806.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2807.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2808.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2809.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2810.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2811.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2812.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2813.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2814.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2815.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2816.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2817.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2818.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2819.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2820.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2821.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2822.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2823.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2824.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2825.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2826.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2827.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2828.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2829. Caused by: java.lang.NullPointerException
  2830.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2831.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2832.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2833.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2834.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2835.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2836.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2837.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2838.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2839.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2840.     ... 25 more
  2841. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2842. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2843.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2844.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2845.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2846.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2847.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2848.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2849.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2850.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2851.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2852.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2853.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2854.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2855.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2856.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2857.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2858.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2859.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2860.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2861.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2862.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2863.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2864.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2865.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2866.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2867.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2868.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2869. Caused by: java.lang.NullPointerException
  2870.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2871.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2872.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2873.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2874.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2875.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2876.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2877.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2878.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2879.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2880.     ... 25 more
  2881. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2882. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2883.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2884.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2885.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2886.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2887.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2888.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2889.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2890.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2891.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2892.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2893.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2894.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2895.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2896.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2897.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2898.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2899.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2900.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2901.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2902.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2903.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2904.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2905.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2906.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2907.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2908.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2909. Caused by: java.lang.NullPointerException
  2910.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2911.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2912.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2913.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2914.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2915.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2916.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2917.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2918.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2919.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2920.     ... 25 more
  2921. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2922. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2923.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2924.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2925.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2926.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2927.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2928.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2929.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2930.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2931.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2932.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2933.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2934.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2935.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2936.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2937.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2938.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2939.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2940.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2941.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2942.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2943.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2944.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2945.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2946.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2947.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2948.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2949. Caused by: java.lang.NullPointerException
  2950.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2951.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2952.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2953.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2954.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2955.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2956.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2957.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2958.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2959.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  2960.     ... 25 more
  2961. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  2962. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  2963.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  2964.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  2965.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  2966.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  2967.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  2968.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  2969.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  2970.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  2971.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  2972.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  2973.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  2974.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  2975.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  2976.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  2977.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  2978.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  2979.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  2980.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  2981.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  2982.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  2983.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  2984.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  2985.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  2986.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  2987.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  2988.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  2989. Caused by: java.lang.NullPointerException
  2990.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  2991.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  2992.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  2993.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  2994.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  2995.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  2996.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  2997.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  2998.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  2999.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3000.     ... 25 more
  3001. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3002. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3003.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3004.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3005.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3006.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3007.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3008.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3009.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3010.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3011.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3012.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3013.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3014.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3015.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3016.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3017.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3018.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3019.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3020.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3021.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3022.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3023.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3024.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3025.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3026.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3027.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3028.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3029. Caused by: java.lang.NullPointerException
  3030.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3031.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3032.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3033.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3034.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3035.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3036.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3037.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3038.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3039.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3040.     ... 25 more
  3041. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3042. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3043.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3044.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3045.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3046.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3047.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3048.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3049.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3050.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3051.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3052.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3053.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3054.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3055.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3056.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3057.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3058.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3059.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3060.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3061.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3062.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3063.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3064.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3065.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3066.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3067.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3068.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3069. Caused by: java.lang.NullPointerException
  3070.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3071.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3072.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3073.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3074.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3075.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3076.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3077.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3078.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3079.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3080.     ... 25 more
  3081. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3082. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3083.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3084.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3085.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3086.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3087.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3088.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3089.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3090.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3091.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3092.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3093.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3094.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3095.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3096.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3097.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3098.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3099.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3100.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3101.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3102.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3103.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3104.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3105.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3106.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3107.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3108.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3109. Caused by: java.lang.NullPointerException
  3110.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3111.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3112.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3113.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3114.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3115.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3116.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3117.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3118.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3119.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3120.     ... 25 more
  3121. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3122. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3123.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3124.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3125.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3126.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3127.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3128.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3129.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3130.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3131.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3132.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3133.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3134.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3135.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3136.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3137.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3138.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3139.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3140.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3141.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3142.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3143.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3144.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3145.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3146.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3147.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3148.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3149. Caused by: java.lang.NullPointerException
  3150.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3151.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3152.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3153.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3154.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3155.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3156.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3157.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3158.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3159.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3160.     ... 25 more
  3161. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3162. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3163.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3164.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3165.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3166.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3167.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3168.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3169.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3170.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3171.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3172.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3173.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3174.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3175.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3176.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3177.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3178.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3179.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3180.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3181.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3182.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3183.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3184.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3185.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3186.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3187.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3188.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3189. Caused by: java.lang.NullPointerException
  3190.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3191.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3192.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3193.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3194.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3195.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3196.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3197.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3198.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3199.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3200.     ... 25 more
  3201. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3202. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3203.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3204.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3205.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3206.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3207.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3208.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3209.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3210.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3211.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3212.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3213.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3214.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3215.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3216.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3217.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3218.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3219.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3220.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3221.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3222.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3223.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3224.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3225.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3226.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3227.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3228.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3229. Caused by: java.lang.NullPointerException
  3230.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3231.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3232.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3233.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3234.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3235.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3236.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3237.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3238.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3239.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3240.     ... 25 more
  3241. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3242. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3243.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3244.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3245.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3246.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3247.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3248.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3249.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3250.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3251.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3252.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3253.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3254.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3255.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3256.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3257.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3258.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3259.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3260.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3261.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3262.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3263.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3264.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3265.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3266.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3267.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3268.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3269. Caused by: java.lang.NullPointerException
  3270.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3271.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3272.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3273.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3274.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3275.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3276.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3277.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3278.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3279.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3280.     ... 25 more
  3281. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3282. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3283.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3284.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3285.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3286.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3287.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3288.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3289.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3290.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3291.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3292.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3293.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3294.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3295.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3296.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3297.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3298.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3299.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3300.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3301.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3302.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3303.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3304.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3305.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3306.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3307.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3308.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3309. Caused by: java.lang.NullPointerException
  3310.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3311.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3312.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3313.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3314.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3315.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3316.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3317.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3318.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3319.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3320.     ... 25 more
  3321. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3322. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3323.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3324.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3325.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3326.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3327.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3328.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3329.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3330.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3331.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3332.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3333.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3334.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3335.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3336.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3337.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3338.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3339.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3340.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3341.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3342.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3343.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3344.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3345.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3346.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3347.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3348.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3349. Caused by: java.lang.NullPointerException
  3350.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3351.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3352.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3353.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3354.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3355.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3356.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3357.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3358.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3359.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3360.     ... 25 more
  3361. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3362. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3363.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3364.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3365.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3366.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3367.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3368.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3369.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3370.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3371.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3372.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3373.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3374.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3375.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3376.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3377.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3378.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3379.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3380.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3381.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3382.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3383.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3384.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3385.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3386.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3387.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3388.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3389. Caused by: java.lang.NullPointerException
  3390.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3391.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3392.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3393.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3394.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3395.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3396.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3397.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3398.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3399.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3400.     ... 25 more
  3401. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3402. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3403.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3404.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3405.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3406.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3407.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3408.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3409.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3410.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3411.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3412.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3413.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3414.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3415.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3416.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3417.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3418.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3419.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3420.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3421.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3422.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3423.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3424.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3425.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3426.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3427.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3428.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3429. Caused by: java.lang.NullPointerException
  3430.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3431.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3432.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3433.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3434.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3435.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3436.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3437.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3438.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3439.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3440.     ... 25 more
  3441. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3442. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3443.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3444.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3445.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3446.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3447.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3448.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3449.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3450.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3451.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3452.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3453.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3454.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3455.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3456.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3457.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3458.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3459.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3460.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3461.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3462.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3463.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3464.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3465.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3466.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3467.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3468.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3469. Caused by: java.lang.NullPointerException
  3470.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3471.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3472.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3473.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3474.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3475.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3476.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3477.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3478.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3479.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3480.     ... 25 more
  3481. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3482. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3483.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3484.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3485.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3486.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3487.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3488.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3489.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3490.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3491.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3492.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3493.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3494.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3495.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3496.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3497.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3498.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3499.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3500.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3501.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3502.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3503.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3504.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3505.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3506.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3507.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3508.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3509. Caused by: java.lang.NullPointerException
  3510.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3511.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3512.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3513.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3514.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3515.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3516.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3517.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3518.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3519.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3520.     ... 25 more
  3521. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3522. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3523.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3524.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3525.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3526.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3527.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3528.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3529.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3530.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3531.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3532.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3533.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3534.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3535.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3536.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3537.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3538.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3539.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3540.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3541.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3542.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3543.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3544.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3545.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3546.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3547.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3548.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3549. Caused by: java.lang.NullPointerException
  3550.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3551.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3552.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3553.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3554.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3555.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3556.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3557.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3558.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3559.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3560.     ... 25 more
  3561. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3562. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3563.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3564.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3565.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3566.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3567.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3568.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3569.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3570.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3571.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3572.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3573.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3574.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3575.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3576.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3577.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3578.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3579.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3580.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3581.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3582.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3583.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3584.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3585.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3586.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3587.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3588.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3589. Caused by: java.lang.NullPointerException
  3590.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3591.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3592.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3593.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3594.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3595.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3596.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3597.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3598.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3599.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3600.     ... 25 more
  3601. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3602. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3603.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3604.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3605.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3606.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3607.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3608.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3609.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3610.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3611.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3612.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3613.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3614.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3615.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3616.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3617.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3618.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3619.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3620.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3621.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3622.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3623.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3624.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3625.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3626.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3627.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3628.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3629. Caused by: java.lang.NullPointerException
  3630.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3631.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3632.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3633.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3634.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3635.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3636.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3637.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3638.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3639.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3640.     ... 25 more
  3641. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3642. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3643.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3644.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3645.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3646.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3647.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3648.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3649.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3650.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3651.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3652.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3653.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3654.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3655.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3656.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3657.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3658.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3659.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3660.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3661.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3662.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3663.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3664.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3665.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3666.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3667.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3668.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3669. Caused by: java.lang.NullPointerException
  3670.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3671.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3672.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3673.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3674.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3675.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3676.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3677.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3678.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3679.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3680.     ... 25 more
  3681. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3682. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3683.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3684.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3685.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3686.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3687.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3688.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3689.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3690.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3691.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3692.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3693.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3694.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3695.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3696.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3697.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3698.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3699.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3700.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3701.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3702.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3703.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3704.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3705.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3706.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3707.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3708.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3709. Caused by: java.lang.NullPointerException
  3710.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3711.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3712.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3713.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3714.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3715.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3716.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3717.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3718.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3719.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3720.     ... 25 more
  3721. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3722. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3723.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3724.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3725.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3726.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3727.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3728.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3729.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3730.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3731.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3732.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3733.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3734.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3735.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3736.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3737.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3738.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3739.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3740.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3741.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3742.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3743.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3744.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3745.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3746.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3747.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3748.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3749. Caused by: java.lang.NullPointerException
  3750.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3751.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3752.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3753.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3754.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3755.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3756.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3757.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3758.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3759.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3760.     ... 25 more
  3761. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3762. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3763.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3764.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3765.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3766.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3767.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3768.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3769.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3770.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3771.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3772.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3773.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3774.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3775.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3776.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3777.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3778.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3779.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3780.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3781.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3782.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3783.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3784.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3785.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3786.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3787.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3788.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3789. Caused by: java.lang.NullPointerException
  3790.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3791.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3792.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3793.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3794.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3795.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3796.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3797.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3798.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3799.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3800.     ... 25 more
  3801. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3802. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3803.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3804.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3805.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3806.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3807.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3808.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3809.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3810.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3811.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3812.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3813.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3814.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3815.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3816.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3817.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3818.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3819.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3820.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3821.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3822.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3823.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3824.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3825.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3826.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3827.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3828.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3829. Caused by: java.lang.NullPointerException
  3830.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3831.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3832.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3833.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3834.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3835.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3836.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3837.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3838.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3839.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3840.     ... 25 more
  3841. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3842. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3843.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3844.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3845.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3846.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3847.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3848.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3849.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3850.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3851.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3852.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3853.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3854.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3855.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3856.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3857.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3858.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3859.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3860.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3861.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3862.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3863.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3864.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3865.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3866.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3867.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3868.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3869. Caused by: java.lang.NullPointerException
  3870.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3871.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3872.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3873.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3874.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3875.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3876.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3877.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3878.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3879.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3880.     ... 25 more
  3881. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3882. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3883.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3884.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3885.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3886.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3887.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3888.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3889.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3890.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3891.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3892.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3893.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3894.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3895.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3896.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3897.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3898.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3899.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3900.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3901.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3902.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3903.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3904.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3905.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3906.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3907.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3908.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3909. Caused by: java.lang.NullPointerException
  3910.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3911.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3912.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3913.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3914.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3915.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3916.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3917.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3918.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3919.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3920.     ... 25 more
  3921. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3922. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3923.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3924.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3925.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3926.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3927.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3928.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3929.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3930.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3931.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3932.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3933.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3934.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3935.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3936.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3937.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3938.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3939.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3940.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3941.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3942.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3943.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3944.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3945.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3946.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3947.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3948.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3949. Caused by: java.lang.NullPointerException
  3950.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3951.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3952.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3953.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3954.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3955.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3956.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3957.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3958.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3959.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  3960.     ... 25 more
  3961. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  3962. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  3963.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  3964.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  3965.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  3966.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  3967.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  3968.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  3969.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  3970.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  3971.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  3972.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  3973.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  3974.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  3975.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  3976.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  3977.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  3978.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  3979.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  3980.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  3981.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  3982.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  3983.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  3984.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  3985.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  3986.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  3987.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  3988.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  3989. Caused by: java.lang.NullPointerException
  3990.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  3991.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  3992.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  3993.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  3994.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  3995.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  3996.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  3997.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  3998.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  3999.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4000.     ... 25 more
  4001. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4002. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4003.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4004.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4005.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4006.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4007.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4008.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4009.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4010.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4011.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4012.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4013.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4014.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4015.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4016.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4017.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4018.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4019.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4020.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4021.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4022.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4023.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4024.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4025.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4026.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4027.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4028.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4029. Caused by: java.lang.NullPointerException
  4030.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4031.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4032.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4033.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4034.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4035.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4036.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4037.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4038.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4039.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4040.     ... 25 more
  4041. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4042. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4043.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4044.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4045.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4046.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4047.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4048.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4049.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4050.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4051.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4052.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4053.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4054.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4055.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4056.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4057.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4058.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4059.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4060.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4061.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4062.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4063.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4064.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4065.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4066.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4067.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4068.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4069. Caused by: java.lang.NullPointerException
  4070.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4071.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4072.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4073.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4074.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4075.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4076.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4077.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4078.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4079.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4080.     ... 25 more
  4081. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4082. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4083.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4084.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4085.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4086.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4087.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4088.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4089.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4090.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4091.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4092.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4093.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4094.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4095.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4096.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4097.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4098.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4099.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4100.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4101.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4102.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4103.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4104.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4105.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4106.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4107.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4108.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4109. Caused by: java.lang.NullPointerException
  4110.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4111.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4112.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4113.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4114.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4115.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4116.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4117.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4118.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4119.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4120.     ... 25 more
  4121. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4122. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4123.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4124.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4125.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4126.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4127.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4128.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4129.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4130.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4131.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4132.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4133.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4134.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4135.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4136.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4137.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4138.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4139.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4140.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4141.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4142.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4143.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4144.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4145.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4146.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4147.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4148.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4149. Caused by: java.lang.NullPointerException
  4150.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4151.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4152.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4153.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4154.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4155.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4156.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4157.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4158.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4159.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4160.     ... 25 more
  4161. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4162. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4163.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4164.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4165.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4166.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4167.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4168.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4169.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4170.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4171.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4172.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4173.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4174.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4175.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4176.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4177.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4178.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4179.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4180.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4181.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4182.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4183.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4184.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4185.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4186.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4187.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4188.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4189. Caused by: java.lang.NullPointerException
  4190.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4191.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4192.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4193.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4194.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4195.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4196.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4197.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4198.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4199.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4200.     ... 25 more
  4201. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4202. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4203.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4204.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4205.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4206.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4207.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4208.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4209.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4210.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4211.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4212.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4213.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4214.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4215.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4216.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4217.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4218.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4219.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4220.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4221.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4222.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4223.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4224.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4225.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4226.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4227.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4228.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4229. Caused by: java.lang.NullPointerException
  4230.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4231.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4232.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4233.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4234.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4235.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4236.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4237.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4238.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4239.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4240.     ... 25 more
  4241. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4242. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4243.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4244.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4245.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4246.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4247.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4248.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4249.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4250.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4251.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4252.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4253.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4254.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4255.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4256.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4257.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4258.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4259.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4260.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4261.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4262.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4263.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4264.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4265.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4266.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4267.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4268.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4269. Caused by: java.lang.NullPointerException
  4270.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4271.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4272.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4273.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4274.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4275.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4276.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4277.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4278.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4279.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4280.     ... 25 more
  4281. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4282. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4283.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4284.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4285.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4286.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4287.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4288.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4289.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4290.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4291.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4292.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4293.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4294.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4295.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4296.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4297.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4298.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4299.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4300.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4301.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4302.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4303.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4304.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4305.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4306.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4307.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4308.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4309. Caused by: java.lang.NullPointerException
  4310.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4311.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4312.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4313.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4314.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4315.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4316.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4317.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4318.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4319.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4320.     ... 25 more
  4321. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4322. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4323.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4324.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4325.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4326.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4327.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4328.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4329.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4330.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4331.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4332.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4333.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4334.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4335.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4336.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4337.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4338.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4339.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4340.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4341.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4342.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4343.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4344.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4345.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4346.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4347.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4348.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4349. Caused by: java.lang.NullPointerException
  4350.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4351.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4352.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4353.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4354.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4355.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4356.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4357.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4358.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4359.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4360.     ... 25 more
  4361. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4362. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4363.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4364.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4365.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4366.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4367.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4368.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4369.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4370.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4371.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4372.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4373.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4374.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4375.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4376.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4377.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4378.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4379.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4380.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4381.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4382.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4383.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4384.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4385.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4386.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4387.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4388.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4389. Caused by: java.lang.NullPointerException
  4390.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4391.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4392.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4393.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4394.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4395.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4396.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4397.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4398.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4399.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4400.     ... 25 more
  4401. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4402. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4403.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4404.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4405.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4406.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4407.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4408.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4409.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4410.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4411.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4412.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4413.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4414.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4415.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4416.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4417.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4418.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4419.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4420.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4421.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4422.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4423.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4424.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4425.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4426.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4427.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4428.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4429. Caused by: java.lang.NullPointerException
  4430.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4431.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4432.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4433.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4434.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4435.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4436.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4437.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4438.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4439.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4440.     ... 25 more
  4441. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4442. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4443.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4444.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4445.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4446.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4447.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4448.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4449.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4450.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4451.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4452.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4453.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4454.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4455.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4456.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4457.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4458.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4459.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4460.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4461.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4462.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4463.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4464.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4465.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4466.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4467.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4468.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4469. Caused by: java.lang.NullPointerException
  4470.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4471.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4472.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4473.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4474.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4475.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4476.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4477.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4478.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4479.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4480.     ... 25 more
  4481. [21:50:35] [Server thread/ERROR] [FML/]: SimpleChannelHandlerWrapper exception
  4482. io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4483.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]
  4484.     at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]
  4485.     at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:?]
  4486.     at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:?]
  4487.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) ~[AbstractChannelHandlerContext.class:?]
  4488.     at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) ~[AbstractChannelHandlerContext.class:?]
  4489.     at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) ~[DefaultChannelPipeline.class:?]
  4490.     at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) ~[AbstractChannel.class:?]
  4491.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:249) [SimpleNetworkWrapper.class:?]
  4492.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:898) [Attack.class:?]
  4493.     at com.pixelmonmod.pixelmon.battles.attacks.Attack.setDisabled(Attack.java:884) [Attack.class:?]
  4494.     at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.turnTick(PixelmonWrapper.java:579) [PixelmonWrapper.class:?]
  4495.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.endTurn(BattleControllerBase.java:443) [BattleControllerBase.class:?]
  4496.     at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:312) [BattleControllerBase.class:?]
  4497.     at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138) [BattleRegistry.class:?]
  4498.     at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12) [BattleTickHandler.class:?]
  4499.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_36_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) [?:?]
  4500.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
  4501.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:130) [EventBus.class:?]
  4502.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:99) [EventBus.class:?]
  4503.     at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
  4504.     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
  4505.     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
  4506.     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
  4507.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
  4508.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
  4509. Caused by: java.lang.NullPointerException
  4510.     at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:249) ~[adz.class:?]
  4511.     at net.minecraft.network.PacketBuffer.func_150788_a(SourceFile:297) ~[eq.class:?]
  4512.     at net.minecraftforge.fml.common.network.ByteBufUtils.writeItemStack(ByteBufUtils.java:166) ~[ByteBufUtils.class:?]
  4513.     at com.pixelmonmod.pixelmon.comm.PixelmonData.encodeInto(PixelmonData.java:619) ~[PixelmonData.class:?]
  4514.     at com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.Add.toBytes(Add.java:61) ~[Add.class:?]
  4515.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
  4516.     at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
  4517.     at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:73) ~[FMLIndexedMessageToMessageCodec.class:?]
  4518.     at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]
  4519.     at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]
  4520.     ... 25 more
RAW Paste Data