]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/gui/BoolButton.java
Setup for 1.16.3 Fabric
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / gui / BoolButton.java
index f7a0ab14041630b36e7306325f0cdb549c034eb7..edb1d87dd90cfd4876fa589e2cafc1ca1bea6bbd 100644 (file)
@@ -2,6 +2,7 @@ package com.irtimaled.bbor.client.gui;
 
 import com.irtimaled.bbor.client.config.ColorHelper;
 import com.irtimaled.bbor.client.config.ConfigManager;
+import net.minecraft.client.util.math.MatrixStack;
 
 public abstract class BoolButton extends AbstractButton {
     BoolButton(int width, String label, boolean enabled) {
@@ -15,13 +16,13 @@ public abstract class BoolButton extends AbstractButton {
     protected abstract boolean getValue();
 
     @Override
-    protected void renderBackground(int mouseX, int mouseY) {
+    protected void renderBackground(MatrixStack matrixStack, int mouseX, int mouseY) {
         int left = this.x + 1;
         int top = this.y + 1;
         int right = left + this.width - 2;
         int bottom = top + this.height - 2;
         if (this.getValue()) {
-            drawRectangle(left, top, right, bottom, ColorHelper.getColor(ConfigManager.buttonOnOverlay));
+            drawRectangle(matrixStack, left, top, right, bottom, ColorHelper.getColor(ConfigManager.buttonOnOverlay));
         }
     }
 }