diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-07-28 19:52:18 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-07-28 19:52:18 +0200 |
| commit | 80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50 (patch) | |
| tree | f4f361e7397d0f743429bff824664b09ab4a0748 /src/compat/rei/java | |
| parent | 32e1b1176b4230e3e76145c1fec7f13f705cb6a7 (diff) | |
| download | Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.tar.gz Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.tar.bz2 Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.zip | |
feat: update to new moulconfig version
Diffstat (limited to 'src/compat/rei/java')
| -rw-r--r-- | src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBKatRecipe.kt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBKatRecipe.kt b/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBKatRecipe.kt index f77e9f5..cb7877d 100644 --- a/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBKatRecipe.kt +++ b/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBKatRecipe.kt @@ -8,7 +8,7 @@ import io.github.notenoughupdates.moulconfig.gui.MouseEvent import io.github.notenoughupdates.moulconfig.gui.component.SliderComponent import io.github.notenoughupdates.moulconfig.observer.GetSetter import io.github.notenoughupdates.moulconfig.observer.Property -import io.github.notenoughupdates.moulconfig.platform.ModernRenderContext +import io.github.notenoughupdates.moulconfig.platform.MoulConfigRenderContext import me.shedaniel.math.Point import me.shedaniel.math.Rectangle import me.shedaniel.rei.api.client.gui.Renderer @@ -148,7 +148,7 @@ fun wrapWidget(bounds: Rectangle, component: GuiComponent): Widget { context.matrices.translate(bounds.minX.toFloat(), bounds.minY.toFloat()) component.render( GuiImmediateContext( - ModernRenderContext(context), + MoulConfigRenderContext(context), bounds.minX, bounds.minY, bounds.width, bounds.height, mouseX - bounds.minX, mouseY - bounds.minY, @@ -165,7 +165,7 @@ fun wrapWidget(bounds: Rectangle, component: GuiComponent): Widget { component.mouseEvent( MouseEvent.Move(0F, 0F), GuiImmediateContext( - IMinecraft.instance.provideTopLevelRenderContext(), + IMinecraft.INSTANCE.provideTopLevelRenderContext(), bounds.minX, bounds.minY, bounds.width, bounds.height, mouseXInt - bounds.minX, mouseYInt - bounds.minY, @@ -181,7 +181,7 @@ fun wrapWidget(bounds: Rectangle, component: GuiComponent): Widget { return component.mouseEvent( MouseEvent.Click(button, true), GuiImmediateContext( - IMinecraft.instance.provideTopLevelRenderContext(), + IMinecraft.INSTANCE.provideTopLevelRenderContext(), bounds.minX, bounds.minY, bounds.width, bounds.height, mouseXInt - bounds.minX, mouseYInt - bounds.minY, @@ -197,7 +197,7 @@ fun wrapWidget(bounds: Rectangle, component: GuiComponent): Widget { return component.mouseEvent( MouseEvent.Click(button, false), GuiImmediateContext( - IMinecraft.instance.provideTopLevelRenderContext(), + IMinecraft.INSTANCE.provideTopLevelRenderContext(), bounds.minX, bounds.minY, bounds.width, bounds.height, mouseXInt - bounds.minX, mouseYInt - bounds.minY, @@ -219,7 +219,7 @@ fun wrapWidget(bounds: Rectangle, component: GuiComponent): Widget { return component.mouseEvent( MouseEvent.Move(deltaX.toFloat(), deltaY.toFloat()), GuiImmediateContext( - IMinecraft.instance.provideTopLevelRenderContext(), + IMinecraft.INSTANCE.provideTopLevelRenderContext(), bounds.minX, bounds.minY, bounds.width, bounds.height, mouseXInt - bounds.minX, mouseYInt - bounds.minY, @@ -241,7 +241,7 @@ fun wrapWidget(bounds: Rectangle, component: GuiComponent): Widget { return component.mouseEvent( MouseEvent.Scroll(verticalAmount.toFloat()), GuiImmediateContext( - IMinecraft.instance.provideTopLevelRenderContext(), + IMinecraft.INSTANCE.provideTopLevelRenderContext(), bounds.minX, bounds.minY, bounds.width, bounds.height, mouseXInt - bounds.minX, mouseYInt - bounds.minY, |
