Advertisement
Exokem

Untitled

May 12th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. [15:19:21] [Server thread/ERROR] [FML]: A TileEntity type exokem.exkva.objects.machines.TileEntityPassiveCollector has throw an exception trying to write state. It will not persist. Report this to the mod author
  2. java.lang.NullPointerException: null
  3. at exokem.exkva.objects.machines.TileEntityMachineBase.writeToNBT(TileEntityMachineBase.java:115) ~[TileEntityMachineBase.class:?]
  4. at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:414) [AnvilChunkLoader.class:?]
  5. at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:185) [AnvilChunkLoader.class:?]
  6. at net.minecraft.world.gen.ChunkProviderServer.saveChunkData(ChunkProviderServer.java:214) [ChunkProviderServer.class:?]
  7. at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:242) [ChunkProviderServer.class:?]
  8. at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:1061) [WorldServer.class:?]
  9. at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:468) [MinecraftServer.class:?]
  10. at net.minecraft.server.integrated.IntegratedServer.saveAllWorlds(IntegratedServer.java:274) [IntegratedServer.class:?]
  11. at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:177) [IntegratedServer.class:?]
  12. at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?]
  13. at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
  14.  
  15. @Override
  16. public NBTTagCompound writeToNBT(NBTTagCompound compound) {
  17. compound = super.writeToNBT(compound);
  18. compound.setTag("inventory", inventory.serializeNBT());
  19. compound.setInteger("active_time", activeTime);
  20. compound.setBoolean("active", active);
  21. if(hasEnergy) {
  22. compound.setInteger("stored_energy", energyStorage.getEnergyStored());
  23. }
  24. return compound;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement