Skip to content

Custom-sound entry crashes the import #10

@NEWO-J

Description

@NEWO-J

Step 1. Before you submit

  • I have read the above instructions and am sure that this is supposed to be posted here.

Step 2. Version

0.2.12+1.12.11

Step 3. Describe the issue

Custom-sound entry on live Hypixel uses AnvilScreen (class_471);
SystemsAPI 0.2.12's MenuUtils.currentMenu (MenuUtils.kt:227) expects GenericContainerScreen, so every custom
playsound crashes the importer

Step 4. Relevant logs

[21:45:29] Disabling Dynamic FPS for import...
  [21:45:29] [STDOUT]: Estimated import time: 1381200ms 1381.0s
  [21:45:31] Re-enabling Dynamic FPS after import...
  [21:45:31] [STDERR]: java.lang.ClassCastException: Expected GenericContainerScreen but found
  net.minecraft.class_471
        at knot//llc.redstone.systemsapi.util.MenuUtils.currentMenu(MenuUtils.kt:227)
        at knot//llc.redstone.systemsapi.util.MenuUtils.interactionClick(MenuUtils.kt:214)
        at knot//llc.redstone.systemsapi.util.MenuUtils.interactionClick$default(MenuUtils.kt:212)
        at knot//llc.redstone.systemsapi.util.InputUtils.textInput(InputUtils.kt:154)
        at knot//llc.redstone.systemsapi.util.InputUtils$textInput$1.invokeSuspend(InputUtils.kt)
        at knot//kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
        at knot//kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
        at knot//net.minecraft.class_1255.method_18859(class_1255.java:169)
        at knot//net.minecraft.class_4093.method_18859(class_4093.java:23)
        at knot//net.minecraft.class_1255.method_16075(class_1255.java:143)
        at knot//net.minecraft.class_1255.method_5383(class_1255.java:124)
        at knot//net.minecraft.class_310.method_1523(class_310.java:1339)
        at knot//net.minecraft.class_310.method_1514(class_310.java:966)
        at knot//net.minecraft.client.main.Main.main(Main.java:250)
        at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions