Cheos137 / ArmorpointsPlusplus

A light-weight mod overhauling vanilla ui components
https://modrinth.com/mod/armorpoints
MIT License
2 stars 2 forks source link

[Bug]: Crash when switching gamemode to survival -> NoSuchMethodError with Spectrum 1.7.6 #98

Open plantiac opened 5 months ago

plantiac commented 5 months ago

Is there an existing issue for this?

Are you using the latest version currently available?

Description

Game crashes when switching to survival.

Reason: renderAzureDike from Spectrum side has been refactored image

Possible solution: adjust parameters at dev.cheos.armorpointspp.compat.SpectrumSafeAccess.handleOnRender(SpectrumSafeAccess.java:10) and anything related to this method

Version

3.1.x for Minecraft Fabric 1.19.2

Version

No response

To Reproduce

No response

Expexted Behavior

No response

Additional Context

No response

Screenshots

No response

Relevant Log / Crash-Report Output

java.lang.NoSuchMethodError: 'void de.dafuqs.spectrum.render.HudRenderers.renderAzureDike(net.minecraft.class_4587, int, int, net.minecraft.class_1657)'
    at dev.cheos.armorpointspp.compat.SpectrumSafeAccess.handleOnRender(SpectrumSafeAccess.java:10)
    at dev.cheos.armorpointspp.ApppGui.method_1760(ApppGui.java:89)
    at net.minecraft.class_329.method_1753(class_329.java:225)
    at dev.cheos.armorpointspp.ApppGui.method_1753(ApppGui.java:43)
    at net.minecraft.class_757.method_3192(class_757.java:862)
    at net.minecraft.class_310.method_1523(class_310.java:1177)
    at net.minecraft.class_310.method_1514(class_310.java:768)
    at net.minecraft.client.main.Main.method_44604(Main.java:244)
    at net.minecraft.client.main.Main.main(Main.java:51)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)