diff options
| author | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-08-09 07:02:36 +1000 |
|---|---|---|
| committer | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-08-09 07:02:36 +1000 |
| commit | f729d5199a2acd9264f9e4244d598debdc53cbcc (patch) | |
| tree | bbc3d3017c5283174eb55a1300ce4e26bf52e5ec /src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java | |
| parent | 1b2b38531242d2f3862f5594199bd55d0bf00539 (diff) | |
| download | notenoughupdates-f729d5199a2acd9264f9e4244d598debdc53cbcc.tar.gz notenoughupdates-f729d5199a2acd9264f9e4244d598debdc53cbcc.tar.bz2 notenoughupdates-f729d5199a2acd9264f9e4244d598debdc53cbcc.zip | |
1.1.1
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java b/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java index 4759d99b..aba1d743 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroup.java @@ -54,8 +54,10 @@ public abstract class MBGuiGroup extends MBGuiElement { @Override public void render(float x, float y) { + Map<MBGuiElement, Vector2f> childrenPos = getChildrenPosition(); + for(MBGuiElement child : getChildren()) { - Vector2f childPos = childrenPosition.get(child); + Vector2f childPos = childrenPos.get(child); child.render(x+childPos.x, y+childPos.y); } } |
