mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 14:33:57 +01:00
fix concurrent modification
This commit is contained in:
parent
d59fea1079
commit
3e63afa5f5
@ -136,7 +136,7 @@ public abstract class InstancedTileRenderer<P extends BasicProgram> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void clean() {
|
public void clean() {
|
||||||
instances.keySet().stream().filter(TileEntity::isRemoved).forEach(instances::remove);
|
instances.keySet().removeIf(TileEntity::isRemoved);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void invalidate() {
|
public void invalidate() {
|
||||||
|
Loading…
Reference in New Issue
Block a user