aboutsummaryrefslogtreecommitdiff
path: root/mod/src
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-15 23:51:32 +0900
committersyeyoung <cyoung06@naver.com>2023-01-15 23:51:32 +0900
commit6d63af431489516c6d7df23866719f4acd866d46 (patch)
tree66888e0b8d72eba16aa7c4100e39a540ac090611 /mod/src
parentfdf6772c758d78abd637cd80ea22bbd3b206f311 (diff)
downloadSkyblock-Dungeons-Guide-6d63af431489516c6d7df23866719f4acd866d46.tar.gz
Skyblock-Dungeons-Guide-6d63af431489516c6d7df23866719f4acd866d46.tar.bz2
Skyblock-Dungeons-Guide-6d63af431489516c6d7df23866719f4acd866d46.zip
- overlay manager
- cutting relayout requests (on tight fits) - GUIFeatures -> overlay manager Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java
index b3e4b0cf..d49589e3 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java
@@ -101,7 +101,7 @@ public class DomElement {
// event propagation
public void requestRelayout() {
- if (layouter.canCutRequest()) {
+ if (layouter.canCutRequest() && size != null) {
layouter.layout(this, new ConstraintBox(
size.getWidth(), size.getWidth(), size.getHeight(), size.getHeight()
));