aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-07-24 15:57:59 +0100
committerisXander <xandersmith2008@gmail.com>2023-07-24 16:10:44 +0100
commit8211034ad491949b433b094b7d5c920f3ab7a378 (patch)
treeb35fd6a0bee32cc79527a83f6bb85917bde211cb /common/src/main/java
parentb5fdad973f499b6e26a885dba89e66ea2c29bde3 (diff)
downloadYetAnotherConfigLib-8211034ad491949b433b094b7d5c920f3ab7a378.tar.gz
YetAnotherConfigLib-8211034ad491949b433b094b7d5c920f3ab7a378.tar.bz2
YetAnotherConfigLib-8211034ad491949b433b094b7d5c920f3ab7a378.zip
Whoops! Fix image renderer being rendered twice every frame
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java1
1 files changed, 0 insertions, 1 deletions
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;
}
}