aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-04-01 01:45:53 +0200
committerLinnea Gräf <nea@nea.moe>2025-04-01 01:45:53 +0200
commit735b3b704f971521256f0b4e67e5e5bfb309e0f5 (patch)
tree1dbb43e55f652ec6817a752766206d1bc1915747 /src
parenta7e8d67d782d2c5d0d091fdbb2518fa8474de709 (diff)
downloadFirmament-735b3b704f971521256f0b4e67e5e5bfb309e0f5.tar.gz
Firmament-735b3b704f971521256f0b4e67e5e5bfb309e0f5.tar.bz2
Firmament-735b3b704f971521256f0b4e67e5e5bfb309e0f5.zip
fix: Missing inventory background rectangle in button editor
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt b/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
index 18dfa3a..c4ea519 100644
--- a/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
+++ b/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
@@ -120,6 +120,13 @@ class InventoryButtonEditor(
return newButtons
}
+ override fun renderBackground(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float) {
+ context.matrices.push()
+ context.matrices.translate(0F, 0F, -15F)
+ super.renderBackground(context, mouseX, mouseY, delta)
+ context.matrices.pop()
+ }
+
override fun render(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float) {
super.render(context, mouseX, mouseY, delta)
context.matrices.push()