Mod Crashes on world load 1.12.2

Published by Ibtonyu on Mon, 04/06/2020 - 16:09
Status
Resolved
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

When loading up my mod in a world already generated or not generated it crashes. Im using 1.12.2 forge with mcreator 2020.1 the crash report is as follows

---- Minecraft Crash Report ----
// Don't do that.

Time: 4/6/20 11:08 AM
Description: Exception in server tick loop

java.lang.NoSuchFieldError: world
    at net.mcreator.bettervanillacrafting.Elementsbettervanillacrafting.onPlayerLoggedIn(Elementsbettervanillacrafting.java:89)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_20_Elementsbettervanillacrafting_onPlayerLoggedIn_PlayerLoggedInEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.fml.common.FMLCommonHandler.firePlayerLoggedIn(FMLCommonHandler.java:575)
    at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:219)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:255)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:72)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:205)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:285)
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:790)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:745)

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

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 179132184 bytes (170 MB) / 503316480 bytes (480 MB) up to 2147483648 bytes (2048 MB)
    JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2847 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State  | ID                    | Version      | Source                        | Signature |
    |:------ |:--------------------- |:------------ |:----------------------------- |:--------- |
    | LCHIJA | minecraft             | 1.12.2       | minecraft.jar                 | None      |
    | LCHIJA | mcp                   | 9.42         | minecraft.jar                 | None      |
    | LCHIJA | FML                   | 8.0.99.99    | forge-1.12.2-14.23.5.2847.jar | None      |
    | LCHIJA | forge                 | 14.23.5.2847 | forge-1.12.2-14.23.5.2847.jar | None      |
    | LCHIJA | bettervanillacrafting | 1.0.0        | modid-1.0.jar                 | None      |

    Loaded coremods (and transformers): 
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Player Count: 1 / 8; [EntityPlayerMP['ibtonyu2'/180, l='Vanilla Crafting Showcase', x=37.51, y=3.00, z=-361.18]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'

Issue comments



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.