need help with a block with GUI

1 post / 0 new
Offline
Last seen: 1 month 6 days ago
Joined: 11/14/2014 - 17:01
Gems: 0
need help with a block with GUI

gradle console log:

<code>
>[10:21:35] [Server thread/ERROR]: Encountered an unexpected exception
>net.minecraft.util.ReportedException: Ticking memory connection
>    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:181) ~[NetworkSystem.class:?]
>    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:659) ~[MinecraftServer.class:?]
>    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547) ~[MinecraftServer.class:?]
>    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111) ~[IntegratedServer.class:?]
>    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]
>    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [MinecraftServer$2.class:?]
>Caused by: java.lang.NullPointerException
>    at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:620) ~[NetHandlerPlayServer.class:?]
>    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(SourceFile:60) ~[C08PacketPlayerBlockPlacement.class:?]
>    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(SourceFile:9) ~[C08PacketPlayerBlockPlacement.class:?]
>    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:212) ~[NetworkManager.class:?]
>    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:165) ~[NetworkSystem.class:?]
>    ... 5 more
>[10:21:35] [Server thread/ERROR]: This crash report has been saved to: C:\Pylo\MCreator154\forge\eclipse\.\crash-reports\crash-2015-02-18_10.21.35-server.txt
>[10:21:35] [Server thread/INFO]: Stopping server
>[10:21:35] [Server thread/INFO]: Saving players
>[10:21:35] [Server thread/INFO]: Saving worlds
>[10:21:35] [Client thread/INFO]: [net.minecraft.client.Minecraft:displayCrashReport:349]: ---- Minecraft Crash Report ----
>// Surprise! Haha. Well, this is awkward.
>Time: 15/02/18 10:21
>Description: Ticking memory connection
>java.lang.NullPointerException: Ticking memory connection
>    at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:620)
>    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(SourceFile:60)
>    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(SourceFile:9)
>    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:212)
>    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:165)
>    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:659)
>    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547)
>    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
>    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
>    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
>A detailed walkthrough of the error, its code path and all known details is as follows:
>---------------------------------------------------------------------------------------
>-- Head --
>Stacktrace:
>    at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:620)
>    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(SourceFile:60)
>    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(SourceFile:9)
>    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:212)
>-- Ticking connection --
>Details:
>    Connection: net.minecraft.network.NetworkManager@1851c98
>Stacktrace:
>    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:165)
>    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:659)
>    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:547)
>    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
>    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
>    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
>-- System Details --
>Details:
>    Minecraft Version: 1.7.10
>    Operating System: Windows 7 (x86) version 6.1
>    Java Version: 1.7.0_60, Oracle Corporation
>    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
>    Memory: 41579784 bytes (39 MB) / 239759360 bytes (228 MB) up to 259522560 bytes (247 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: 12, tallocated: 94
>    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] (forgeBin-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] (forgeBin-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
>    TestEnvironmentMod{1.0} [TestEnvironmentMod] (modid-1.0.jar) 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['Player724'/512, l='New World', x=-71.48, y=67.00, z=22.18]]
>    Type: Integrated Server (map_client.txt)
>    Is Modded: Definitely; Client brand changed to 'fml,forge'
>[10:21:35] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
>[10:21:35] [Client thread/INFO]: [net.minecraft.client.Minecraft:displayCrashReport:354]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-02-18_10.21.35-server.txt
>[10:21:36] [Client thread/INFO]: Waiting for the server to terminate/save.
>[10:21:36] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
>[10:21:36] [Server thread/INFO]: Saving chunks for level 'New World'/The End
>[10:21:36] [Server thread/INFO]: Unloading dimension 0
>[10:21:36] [Server thread/INFO]: Unloading dimension -1
>[10:21:36] [Server thread/INFO]: Unloading dimension 1
>[10:21:36] [Server thread/INFO]: Applying holder lookups
>[10:21:36] [Server thread/INFO]: Holder lookups applied
>[10:21:36] [Server thread/INFO]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
>[10:21:36] [Client thread/INFO]: Server terminated.
>AL lib: (EE) alc_cleanup: 1 device not closed
>:runClient FAILED
>FAILURE: Build failed with an exception.
>* What went wrong:
>Execution failed for task ':runClient'.
>> Process 'command 'C:\Pylo\MCreator154\jdk\bin\java.exe'' finished with non-zero exit value -1
>* Try:
>Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>BUILD FAILED
>Total time: 3 mins 11.266 secs
>C:\Pylo\MCreator154\forge>
>Task completed with return code 0 in 191969 milliseconds
>Task return code check OK!</code>

Alright, so i made a block that you can right click to let the basic gui show up.

but, when i was testing the block i right clicked the block and the gui showed up

but when i exited the gui and right clicked any other block minecraft crashed.

Edited by: Fabco on 02/18/2015 - 02:37