This commit is contained in:
Anuken 2023-11-04 17:38:50 -04:00
parent 318ff1b5ad
commit 6b2229ffb9

View File

@ -28,6 +28,7 @@ public class EntityGroup<T extends Entityc> implements Iterable<T>{
private int index;
public static int nextId(){
if(lastId >= Integer.MAX_VALUE - 2) lastId = 0;
return lastId++;
}