refactor: simplify NBT reading for ability properties and potion effects

This commit is contained in:
Kam committed 2026-02-13 14:17:17 -05:00
1 parent f16c8ae115
commit 185d915928
38 files changed
+429 -417

No files matched your search

@@ -180,7 +180,7 @@ public abstract class GuiNPCInterface extends GuiScreen {
return;
}
}
for (GuiNpcTextField tf : new ArrayList<GuiNpcTextField>(textfields.values()))
if (tf.enabled)
tf.mouseClicked(i, j, k);
@@ -415,7 +415,7 @@ public abstract class GuiNPCInterface extends GuiScreen {
if (tf.hasHoverText())
tf.drawHover(i, j, subGui);
}
for (GuiScreen gui : extra.values())
gui.drawScreen(i, j, f);
@@ -439,8 +439,7 @@ public abstract class GuiNPCInterface extends GuiScreen {
int bottomHeight = 0;
int bottomTextureV = 0;
if (ySize < bgTextureHeight) {
// Keep bottom border from texture bottom (last 6 pixels of actual content)
bottomHeight = 6;
bottomHeight = -1;
topHeight = ySize - bottomHeight;
bottomTextureV = bgTextureHeight - bottomHeight;
}