geforkt von Mirrors/Paper
SPIGOT-7495: Spawning bee entity in asynchronous BlockPopulator causes IllegalStateException - Accessing LegacyRandomSource from multiple threads
By: DerFrZocker <derrieple@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
851acb6496
Commit
7380cef545
@ -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 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren