mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 20:07:32 +00:00
Properly ordered mouse clicked components
This commit is contained in:
1 parent
8fa22e1e60
commit
ac8228e4d1
1 file changed
+7
-5
@@ -153,9 +153,8 @@ public abstract class GuiNPCInterface extends GuiScreen {
|
||||
if (subgui != null)
|
||||
subgui.mouseClicked(i, j, k);
|
||||
else {
|
||||
for (GuiNpcTextField tf : new ArrayList<GuiNpcTextField>(textfields.values()))
|
||||
if (tf.enabled)
|
||||
tf.mouseClicked(i, j, k);
|
||||
mouseEvent(i, j, k);
|
||||
vanillaMouseClicked(i, j, k);
|
||||
|
||||
for (GuiScrollWindow guiScrollableComponent : scrollWindows.values()) {
|
||||
guiScrollableComponent.mouseClicked(i, j, k);
|
||||
@@ -173,8 +172,11 @@ public abstract class GuiNPCInterface extends GuiScreen {
|
||||
return;
|
||||
}
|
||||
}
|
||||
mouseEvent(i, j, k);
|
||||
vanillaMouseClicked(i, j, k);
|
||||
|
||||
for (GuiNpcTextField tf : new ArrayList<GuiNpcTextField>(textfields.values()))
|
||||
if (tf.enabled)
|
||||
tf.mouseClicked(i, j, k);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user