Jump to content

<Solved> My tileentity nullpointerexeption'd when trying to save NBT-data


sham1

Recommended Posts

So yeah, the problem is in the title. And the funny thing about it is that it only happens on block that has been already placed after world reload.

 

The log:

[16:49:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[16:49:58] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[16:49:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[16:49:59] [main/INFO]: Logging in with username & password
[16:50:00] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1230 for Minecraft 1.7.10 loading
[16:50:00] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_67, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
[16:50:00] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:50:00] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:50:00] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[16:50:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:50:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:50:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:50:01] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:50:03] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:50:03] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:50:03] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[16:50:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[16:50:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[16:50:04] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[16:50:06] [main/INFO]: Setting user: sham1
[16:50:09] [Client thread/INFO]: LWJGL Version: 2.9.1
[16:50:10] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[16:50:10] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1230 Initialized
[16:50:10] [Client thread/INFO] [FML]: Replaced 182 ore recipies
[16:50:10] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[16:50:10] [Client thread/INFO] [FML]: Searching C:\Users\Jani\git\PSICraft\mods for mods
[16:50:11] [Client thread/WARN] [psicraftID]: Mod psicraftID is missing the required element 'version' and no fallback can be found. Substituting '1.0'.
[16:50:17] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[16:50:17] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, psicraftID] at CLIENT
[16:50:17] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, psicraftID] at SERVER
[16:50:18] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:PSI Craft
[16:50:18] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:50:18] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[16:50:18] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:50:18] [Client thread/INFO] [FML]: Applying holder lookups
[16:50:18] [Client thread/INFO] [FML]: Holder lookups applied
[16:50:18] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:50:18] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[16:50:18] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[16:50:18] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:50:19] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[16:50:19] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:50:19] [sound Library Loader/INFO]: Sound engine started
[16:50:21] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[16:50:22] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[16:50:22] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[16:50:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:PSI Craft
[16:50:22] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[16:50:22] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_165_psigenerator.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_165_psigenerator.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:643) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
[16:50:23] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[16:50:23] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:50:23] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[16:50:23] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[16:50:23] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:50:23] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:50:23] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[16:50:23] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[16:50:23] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:50:23] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[16:50:23] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:50:23] [sound Library Loader/INFO]: Sound engine started
[16:50:47] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[16:50:47] [server thread/INFO]: Generating keypair
[16:50:47] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[16:50:48] [server thread/INFO] [FML]: Applying holder lookups
[16:50:48] [server thread/INFO] [FML]: Holder lookups applied
[16:50:48] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@3bdd8ec9)
[16:50:48] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@3bdd8ec9)
[16:50:48] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@3bdd8ec9)
[16:50:48] [server thread/INFO]: Preparing start region for level 0
[16:50:49] [server thread/INFO]: Preparing spawn area: 14%
[16:50:50] [server thread/INFO] [sTDOUT]: [com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity:readFromNBT:61]: ReadFromNBT
[16:50:50] [server thread/INFO]: Preparing spawn area: 76%
[16:50:51] [server thread/INFO]: Changing view distance to 2, from 10
[16:50:51] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[16:50:51] [Netty IO #1/INFO] [FML]: Client protocol version 1
[16:50:51] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[16:50:51] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[16:50:51] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[16:50:51] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[16:50:51] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[16:50:51] [server thread/INFO]: sham1[local:E:8fe7df27] logged in with entity id 544 at (96.71002049315578, 12.56090590298851, -50.03434868967865)
[16:50:51] [server thread/INFO]: sham1 joined the game
[16:50:52] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking entity
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:709) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
Caused by: java.lang.NullPointerException
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.writeToNBT(PSIGeneratorTileEntity.java:46) ~[PSIGeneratorTileEntity.class:?]
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.getDescriptionPacket(PSIGeneratorTileEntity.java:36) ~[PSIGeneratorTileEntity.class:?]
at net.minecraft.entity.player.EntityPlayerMP.func_147097_b(EntityPlayerMP.java:584) ~[EntityPlayerMP.class:?]
at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:311) ~[EntityPlayerMP.class:?]
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) ~[World.class:?]
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684) ~[WorldServer.class:?]
at net.minecraft.world.World.updateEntity(World.java:2258) ~[World.class:?]
at net.minecraft.world.World.updateEntities(World.java:2108) ~[World.class:?]
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515) ~[WorldServer.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) ~[MinecraftServer.class:?]
... 4 more
[16:50:52] [server thread/ERROR]: This crash report has been saved to: C:\Users\Jani\git\PSICraft\.\crash-reports\crash-2014-12-06_16.50.52-server.txt
[16:50:52] [server thread/INFO]: Stopping server
[16:50:52] [server thread/INFO]: Saving players
[16:50:52] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 6.12.2014 16:50
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.writeToNBT(PSIGeneratorTileEntity.java:46)
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.getDescriptionPacket(PSIGeneratorTileEntity.java:36)
at net.minecraft.entity.player.EntityPlayerMP.func_147097_b(EntityPlayerMP.java:584)
at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:311)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)
at net.minecraft.world.World.updateEntity(World.java:2258)
at net.minecraft.world.World.updateEntities(World.java:2108)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.writeToNBT(PSIGeneratorTileEntity.java:46)
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.getDescriptionPacket(PSIGeneratorTileEntity.java:36)
at net.minecraft.entity.player.EntityPlayerMP.func_147097_b(EntityPlayerMP.java:584)
at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:311)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)
at net.minecraft.world.World.updateEntity(World.java:2258)

-- Entity being ticked --
Details:
Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
Entity ID: 544
Entity Name: sham1
Entity's Exact location: 96,71, 12,56, -50,03
Entity's Block location: World: (96,12,-51), Chunk: (at 0,0,13 in 6,-4; contains blocks 96,0,-64 to 111,255,-49), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Entity's Momentum: 0,00, 0,00, 0,00
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:2108)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)

-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['sham1'/544, l='New World', x=96,71, y=12,56, z=-50,03]]
Chunk stats: ServerChunkCache: 670 Drop: 0
Level seed: 6122057205855843159
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options: 
Level spawn location: World: (80,64,64), Chunk: (at 0,4,0 in 5,4; contains blocks 80,0,64 to 95,255,79), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 56343 game time, 56343 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 51051 (now: false), thunder time: 18667 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 385017672 bytes (367 MB) / 535298048 bytes (510 MB) up to 1431830528 bytes (1365 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
psicraftID{1.0} [PSI Craft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['sham1'/544, l='New World', x=96,71, y=12,56, z=-50,03]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
[16:50:52] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-12-06_16.50.52-server.txt
[16:50:52] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
[16:50:52] [server thread/INFO]: Saving worlds
[16:50:52] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[16:50:52] [server thread/ERROR] [FML]: A TileEntity type com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity has throw an exception trying to write state. It will not persist. Report this to the mod author
java.lang.NullPointerException
at com.github.sham1.psicraft.tileentity.PSIGeneratorTileEntity.writeToNBT(PSIGeneratorTileEntity.java:46) ~[PSIGeneratorTileEntity.class:?]
at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]
at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]
at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]
at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:862) [WorldServer.class:?]
at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:538) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
[16:50:52] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[16:50:52] [server thread/INFO]: Saving chunks for level 'New World'/The End
[16:50:53] [server thread/INFO] [FML]: Unloading dimension 0
[16:50:53] [server thread/INFO] [FML]: Unloading dimension -1
[16:50:53] [server thread/INFO] [FML]: Unloading dimension 1
[16:50:53] [server thread/INFO] [FML]: Applying holder lookups
[16:50:53] [server thread/INFO] [FML]: Holder lookups applied
[16:50:53] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
[16:50:53] [Client thread/INFO] [FML]: Server terminated.
AL lib: (EE) alc_cleanup: 1 device not closed

 

And here is the code of tile entity:

 

https://github.com/sham1/PSICraft/blob/dev/PSICraft/src/main/java/com/github/sham1/psicraft/tileentity/PSIGeneratorTileEntity.java

If my post helped you, please press that "Thank You"-button to show your appreciation.

 

Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding!

 

Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.

Link to comment
Share on other sites

Yeah, I added a null-check and now it works fine.

 

Sorta dumb of me because I should have known that would be needed. It may have been a brainfart.

 

Thank you anyway.

If my post helped you, please press that "Thank You"-button to show your appreciation.

 

Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding!

 

Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.