aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt b/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
index d862bb1..ce074d8 100644
--- a/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
+++ b/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
@@ -197,7 +197,6 @@ class InventoryButtonEditor(
}
override fun render(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float) {
- super.render(context, mouseX, mouseY, delta)
context.matrices.pushMatrix()
PanelComponent.DefaultBackgroundRenderer.VANILLA
.render(
@@ -206,6 +205,7 @@ class InventoryButtonEditor(
lastGuiRect.width, lastGuiRect.height,
)
context.matrices.popMatrix()
+ super.render(context, mouseX, mouseY, delta)
for (button in buttons) {
val buttonPosition = button.getBounds(lastGuiRect)
context.matrices.pushMatrix()