aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2025-04-12 16:42:58 +0800
committershedaniel <daniel@shedaniel.me>2025-04-12 16:42:58 +0800
commite0f7553d6eaa7a702b37143d07f0d9627797d93a (patch)
tree5f438e8054d3332bb7a8c4d7fc3287865dbba3d6 /runtime/src/main
parent098fb7b5dae7bbe4a7dc439e90455e4d9d2359ed (diff)
downloadRoughlyEnoughItems-e0f7553d6eaa7a702b37143d07f0d9627797d93a.tar.gz
RoughlyEnoughItems-e0f7553d6eaa7a702b37143d07f0d9627797d93a.tar.bz2
RoughlyEnoughItems-e0f7553d6eaa7a702b37143d07f0d9627797d93a.zip
Fix scissoring
Diffstat (limited to 'runtime/src/main')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigOptionWidget.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigOptionWidget.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigOptionWidget.java
index efb37f455..015dc1c75 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigOptionWidget.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigOptionWidget.java
@@ -31,7 +31,6 @@ import me.shedaniel.rei.api.client.gui.widgets.Label;
import me.shedaniel.rei.api.client.gui.widgets.Widget;
import me.shedaniel.rei.api.client.gui.widgets.WidgetWithBounds;
import me.shedaniel.rei.api.client.gui.widgets.Widgets;
-import me.shedaniel.rei.api.client.util.MatrixUtils;
import me.shedaniel.rei.impl.client.gui.config.ConfigAccess;
import me.shedaniel.rei.impl.client.gui.config.options.AllREIConfigOptions;
import me.shedaniel.rei.impl.client.gui.config.options.CompositeOption;
@@ -127,7 +126,7 @@ public class ConfigOptionWidget {
this.previewLabel.render(graphics, mouseX, mouseY, delta);
if (this.preview != null && this.previewHeight.value() > 0.1f) {
- Rectangle rectangle = MatrixUtils.transform(graphics.pose().last().pose(), new Rectangle(0, 24 + 12 * split.size() - (nextLinePreview ? 0 : 12), width, this.previewHeight.value()));
+ Rectangle rectangle = new Rectangle(0, 24 + 12 * split.size() - (nextLinePreview ? 0 : 12), width, this.previewHeight.value());
graphics.enableScissor(rectangle.x, rectangle.y, rectangle.getMaxX(), rectangle.getMaxY());
this.previewTranslation = new Matrix4f().translate(0, 12 + 12 * split.size(), 100);
this.preview.render(graphics, mouseX, mouseY, delta);