From 8211034ad491949b433b094b7d5c920f3ab7a378 Mon Sep 17 00:00:00 2001 From: isXander Date: Mon, 24 Jul 2023 15:57:59 +0100 Subject: Whoops! Fix image renderer being rendered twice every frame --- common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java | 1 - 1 file changed, 1 deletion(-) (limited to 'common/src/main/java') diff --git a/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java b/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java index 4fb937c..d0db6e4 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java @@ -76,7 +76,6 @@ public class OptionDescriptionWidget extends AbstractWidget { if (description.description().image().isDone()) { var image = description.description().image().join(); if (image.isPresent()) { - image.get().render(graphics, getX(), y, getWidth()); y += image.get().render(graphics, getX(), y, getWidth()) + 5; } } -- cgit