Crash when using GUI procedures

Published by Zwoom on Mon, 07/20/2020 - 20:45
Status
Invalid
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

When taking/placing an item into a GUI slot with a procedure, the game will crash. It was fine for a while, but something seems to have broken it. Crash Report:

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 20/07/20 21:34
Description: Ticking entity

java.lang.ClassCastException: net.mcreator.gardenofeden.item.TheBookOfEdenItem$InventoryCapability$1 cannot be cast to net.mcreator.gardenofeden.item.TheBookOfEdenItem$InventoryCapability
    at net.mcreator.gardenofeden.item.TheBookOfEdenItem$ItemCustom.lambda$getShareTag$1(TheBookOfEdenItem.java:112) ~[?:?] {re:classloading}
    at net.minecraftforge.common.util.LazyOptional.ifPresent(LazyOptional.java:161) ~[?:?] {re:classloading}
    at net.mcreator.gardenofeden.item.TheBookOfEdenItem$ItemCustom.getShareTag(TheBookOfEdenItem.java:112) ~[?:?] {re:classloading}
    at net.minecraftforge.common.extensions.IForgeItemStack.getShareTag(IForgeItemStack.java:382) ~[?:?] {re:classloading}
    at net.minecraftforge.common.extensions.IForgeItemStack.areShareTagsEqual(IForgeItemStack.java:419) ~[?:?] {re:classloading}
    at net.minecraftforge.common.extensions.IForgeItemStack.equals(IForgeItemStack.java:439) ~[?:?] {re:classloading}
    at net.minecraft.inventory.container.Container.detectAndSendChanges(Container.java:131) ~[?:?] {re:classloading}
    at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:335) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:615) ~[?:?] {re:classloading}
    at net.minecraft.world.World.guardEntityTick(World.java:586) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:404) ~[?:?] {re:classloading}
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662) [?:?] {re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252] {}

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

-- Head --
Thread: Server thread
Stacktrace:
    at net.mcreator.gardenofeden.item.TheBookOfEdenItem$ItemCustom.lambda$getShareTag$1(TheBookOfEdenItem.java:112)
    at net.minecraftforge.common.util.LazyOptional.ifPresent(LazyOptional.java:161)
    at net.mcreator.gardenofeden.item.TheBookOfEdenItem$ItemCustom.getShareTag(TheBookOfEdenItem.java:112)
    at net.minecraftforge.common.extensions.IForgeItemStack.getShareTag(IForgeItemStack.java:382)
    at net.minecraftforge.common.extensions.IForgeItemStack.areShareTagsEqual(IForgeItemStack.java:419)
    at net.minecraftforge.common.extensions.IForgeItemStack.equals(IForgeItemStack.java:439)
    at net.minecraft.inventory.container.Container.detectAndSendChanges(Container.java:131)
    at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:335)
    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:615)

-- Entity being ticked --
Details:
    Entity Type: minecraft:player (net.minecraft.entity.player.ServerPlayerEntity)
    Entity ID: 10
    Entity Name: Dev
    Entity's Exact location: -80.68, 4.00, 218.19
    Entity's Block location: World: (-81,4,218), Chunk: (at 15,0,10 in -6,13; contains blocks -96,0,208 to -81,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Entity's Momentum: 0.00, -0.08, 0.00
    Entity's Passengers: []
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
    at net.minecraft.world.World.guardEntityTick(World.java:586)
    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:404)

-- Affected level --
Details:
    All players: 1 total; [ServerPlayerEntity['Dev'/10, l='New World', x=-80.68, y=4.00, z=218.19]]
    Chunk stats: ServerChunkCache: 2025
    Level dimension: DimensionType{minecraft:overworld}
    Level name: New World
    Level seed: -2200005292482933228
    Level generator: ID 01 - flat, ver 0. Features enabled: true
    Level generator options: {}
    Level spawn location: World: (-80,4,208), Chunk: (at 0,0,0 in -5,13; contains blocks -80,0,208 to -65,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 55353 game time, 2045 day time
    Known server brands: forge
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 8687 (now: false), thunder time: 27102 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662)
    at java.lang.Thread.run(Thread.java:748)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_252, BellSoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), BellSoft
    Memory: 407469848 bytes (388 MB) / 1019740160 bytes (972 MB) up to 1884815360 bytes (1797 MB)
    CPUs: 4
    JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
    ModLauncher: 5.1.0+69+master.79f13f7
    ModLauncher launch target: fmluserdevclient
    ModLauncher naming: mcp
    ModLauncher services:
        /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar object_holder_definalize PLUGINSERVICE
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar runtime_enum_extender PLUGINSERVICE
        /accesstransformers-2.1.1-shadowed.jar accesstransformer PLUGINSERVICE
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar capability_inject_definalize PLUGINSERVICE
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar runtimedistcleaner PLUGINSERVICE
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar fml TRANSFORMATIONSERVICE
    FML: 31.2
    Forge: net.minecraftforge:31.2.0
    FML Language Providers:
        javafml@31.2
        minecraft@1
    Mod List:
        client-extra.jar Minecraft {minecraft@1.15.2 DONE}
        main Garden Of Eden {garden_of_eden@1.0.0 DONE}
        forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar Forge {forge@31.2.0 DONE}
    Player Count: 1 / 8; [ServerPlayerEntity['Dev'/10, l='New World', x=-80.68, y=4.00, z=218.19]]
    Data Packs: vanilla, mod:garden_of_eden, mod:forge (incompatible)
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'

Issue comments

Please read the rules:

When possible, attach your MCreator workspace (preferably a minimal example workspace required to reproduce the bug; use File -> Export workspace to a shareable ZIP...), game or build logs (full logs, do not crop them, in text format, screenshots of logs are not acceptable) from the Console tab or terminal and steps to reproduce the bug in your workspace. If logs are long, use service such as Pastebin to host the log and provide the link to the log from the ticket. Please specify which mod elements to check in your workspace too, if applicable.

Provide workspace and check where logs belong.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.