diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java index c7737ae2c..95aec43f5 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java @@ -955,11 +955,17 @@ public class ClassicConfigGUI { try { + // setting the "y" variable is necessary so each child item + // renders at the correct height, + // if not set they will render off-screen. #if MC_VER < MC_1_21_9 + // Y value passed in from method args #else - int y = this.getY(); /// TODO why is the Y value being set during render? + int y = this.getY(); #endif + + if (this.button != null) { SetY(this.button, y);