mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-30 07:37:32 +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) {
|
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);
|
if (!ticksLived.containsKey(entity)) ticksLived.put(entity, 0);
|
||||||
|
|
||||||
int lived = ticksLived.get(entity);
|
int lived = ticksLived.get(entity);
|
||||||
|
Loading…
Reference in New Issue
Block a user