CleanroomMC / InventoryBogoSorter

A rewrite of the popular Inventory Tweaks mod
GNU Lesser General Public License v3.0
11 stars 9 forks source link

Crash on opening any container #49

Closed Krutoy242 closed 1 year ago

Krutoy242 commented 1 year ago

Opening containers causing crash. Tested on Draconic Evolution Chest and Rustic's Cabinet and even vanilla chest:

[FML]: Exception caught during firing event net.minecraftforge.client.event.GuiScreenEvent$DrawScreenEvent$Pre@5f492f74:
java.lang.ClassCastException: com.brandon3055.draconicevolution.client.gui.GuiDraconiumChest cannot be cast to com.cleanroommc.bogosorter.core.mixin.GuiScreenAccessor
    at com.cleanroommc.bogosorter.common.sort.ButtonHandler.onDrawScreen(ButtonHandler.java:54) ~[ButtonHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_2907_ButtonHandler_onDrawScreen_Pre.invoke(.dynamic) ~[?:?]
java.lang.ClassCastException: rustic.client.gui.GuiCabinetDouble cannot be cast to com.cleanroommc.bogosorter.core.mixin.GuiScreenAccessor
    at com.cleanroommc.bogosorter.common.sort.ButtonHandler.onDrawScreen(ButtonHandler.java:54)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_2909_ButtonHandler_onDrawScreen_Pre.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at com.github.terminatornl.laggoggles.tickcentral.EventBusTransformer.redirectEvent(EventBusTransformer.java:67)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
java.lang.ClassCastException: net.minecraft.client.gui.inventory.GuiChest cannot be cast to com.cleanroommc.bogosorter.core.mixin.GuiScreenAccessor
    at com.cleanroommc.bogosorter.common.sort.ButtonHandler.onDrawScreen(ButtonHandler.java:54) ~[ButtonHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_2909_ButtonHandler_onDrawScreen_Pre.invoke(.dynamic) ~[?:?]

debug.log

brachy84 commented 1 year ago

WTF

KorewaLidesu commented 1 year ago

WTF

[mixin]: Critical problem: mixin.bogosorter.json:GuiScreenAccessor from mod unknown-owner target net.minecraft.client.gui.GuiScreen was loaded too early.

brachy84 commented 1 year ago

fixed