mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-06-29 07:44:45 +02:00
Concurrent modification exception.
This commit is contained in:
parent
89486a686d
commit
f33e9eb40d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user