ate47 / Xray

An implementation of the Xray mod
https://www.curseforge.com/minecraft/mc-mods/xray-1-13-rift-modloader
The Unlicense
38 stars 21 forks source link

Colour change menu crashes game #73

Closed Revenent666 closed 1 year ago

Revenent666 commented 1 year ago

Mod version

2.0.5

Minecraft version

1.19.2

Mod loader

Fabric

Description of the issue

Whenever I try to change the colour and enter the colour changing selection screen. It crashes

Excepted behavior

to be able to change the colour

Obtained behavior

No response

How to reproduce

Do I want to contribute to fix it?

No response

Something else?

No response

ate47 commented 1 year ago

True, I might fix that later

When we hover the buttons

Reported exception thrown!
net.minecraft.class_148: Rendering screen
    at net.minecraft.class_757.method_3192(class_757.java:890)
    at net.minecraft.class_310.method_1523(class_310.java:1176)
    at net.minecraft.class_310.method_1514(class_310.java:767)
    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:461)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.IllegalStateException: Not building!
    at net.minecraft.class_287.method_43577(class_287.java:243)
    at net.minecraft.class_287.method_1326(class_287.java:235)
    at fr.atesab.xray.utils.GuiUtils.drawGradientRect(GuiUtils.java:574)
    at fr.atesab.xray.utils.GuiUtils.drawGradientRect(GuiUtils.java:517)
    at fr.atesab.xray.utils.GuiUtils.drawBox(GuiUtils.java:488)
    at fr.atesab.xray.utils.GuiUtils.drawTextBox(GuiUtils.java:466)
    at fr.atesab.xray.screen.ColorSelector.lambda$render$4(ColorSelector.java:261)
    at fr.atesab.xray.screen.ColorSelector.method_25394(ColorSelector.java:286)
    at net.minecraft.class_757.method_3192(class_757.java:881)
ate47 commented 1 year ago

Fixed in Fabric 1.19 2.1.0, need Forge port