mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
Fixed #9239
This commit is contained in:
@ -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++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user