SPIGOT-7495: Spawning bee entity in asynchronous BlockPopulator causes IllegalStateException - Accessing LegacyRandomSource from multiple threads
This commit is contained in:
parent
476c5bccd3
commit
1bf30a4e90
@ -39,6 +39,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -999,7 +1008,7 @@
|
||||||
|
|
||||||
|
e() {
|
||||||
|
super();
|
||||||
|
- this.travellingTicks = EntityBee.this.level().random.nextInt(10);
|
||||||
|
+ this.travellingTicks = EntityBee.this.random.nextInt(10); // CraftBukkit - SPIGOT-7495: Give Bees another chance and let them use their own random, avoid concurrency issues
|
||||||
|
this.blacklistedTargets = Lists.newArrayList();
|
||||||
|
this.setFlags(EnumSet.of(PathfinderGoal.Type.MOVE));
|
||||||
|
}
|
||||||
|
@@ -1116,7 +1125,7 @@
|
||||||
|
|
||||||
|
f() {
|
||||||
|
super();
|
||||||
|
- this.travellingTicks = EntityBee.this.level().random.nextInt(10);
|
||||||
|
+ this.travellingTicks = EntityBee.this.random.nextInt(10); // CraftBukkit - SPIGOT-7495: Give Bees another chance and let them use their own random, avoid concurrency issues
|
||||||
|
this.setFlags(EnumSet.of(PathfinderGoal.Type.MOVE));
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1216,7 +1225,7 @@
|
@@ -1216,7 +1225,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user