Skip to content

Commit

Permalink
Fix concurrent modification exception by allowing public access to
Browse files Browse the repository at this point in the history
unRender()
  • Loading branch information
lewysDavies committed Jun 28, 2019
1 parent 24ed14a commit 524e990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void destroy() {
this.events.forEach(event -> HandlerList.unregisterAll(event));
this.events = null;

this.modelManager.getModels().forEach(model -> this.getModelManager().removeModel(model));
this.modelManager.getModels().forEach(model -> model.unRender());
this.modelManager = null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected final void render() {
this.instructions.forEach(ins -> this.stands.add(ins.spawnStand(this.center.clone(), this.rotation)));
}

protected final void unRender() {
public final void unRender() {
if (!this.isRendered()) {
return;
}
Expand Down

0 comments on commit 524e990

Please sign in to comment.