Concurrent modification exception.

This commit is contained in:
Brianna 2020-05-12 15:37:48 -04:00
parent 89486a686d
commit f33e9eb40d

View File

@ -64,7 +64,7 @@ public class ModuleAutoCollect extends Module {
}
private void collectLivestock(Farm farm, Collection<LivingEntity> entitiesAroundFarm) {
for (Entity entity : entitiesAroundFarm) {
for (Entity entity : new ArrayList<>(entitiesAroundFarm)) {
if (!ticksLived.containsKey(entity)) ticksLived.put(entity, 0);
int lived = ticksLived.get(entity);