Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/com/ldtteam/blockui/views/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void drawSelf(final BOGuiGraphics target, final double mx, final double m
final double drawX = mx - paddedX;
final double drawY = my - paddedY;

for (final Pane child : children)
for (final Pane child : new ArrayList<>(children))
{
if (childIsVisible(child))
{
Expand All @@ -101,7 +101,7 @@ public void drawSelf(final BOGuiGraphics target, final double mx, final double m
@Override
public void drawHidden()
{
for (final Pane child : children)
for (final Pane child : new ArrayList<>(children))
{
child.drawHidden();
}
Expand All @@ -124,7 +124,7 @@ public void drawSelfLast(final BOGuiGraphics target, final double mx, final doub
final double drawX = mx - paddedX;
final double drawY = my - paddedY;

for (final Pane child : children)
for (final Pane child : new ArrayList<>(children))
{
if (childIsVisible(child))
{
Expand Down