mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 03:22:23 +00:00
refactor: simplify NBT reading for ability properties and potion effects
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user