Это мой настоящий код:
Код: Выделить всё
for(int i = 0; i < states.size(); i++) {
System.out.println(states.size());
states.get(i).update(true); // restore the first blockstate
states.remove(i); // remove the first blockstate from the list
}
Подробнее здесь: https://stackoverflow.com/questions/328 ... a-for-loop
Мобильная версия