mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 10:44:39 +01:00
Fixed problems with World.getPlayers()
This commit is contained in:
parent
5c0c3d346e
commit
b77ae4c941
1 changed files with 1 additions and 9 deletions
|
@ -32,21 +32,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
}
|
}
|
||||||
|
|
||||||
public World b() {
|
public World b() {
|
||||||
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
|
||||||
this.everyoneSleeping();
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (!guardEntityList) { // Spigot - It will get removed after the tick if we are ticking
|
|
||||||
+ if (false) { // Spigot - It will get removed next tick
|
|
||||||
int i = entity.ae;
|
|
||||||
int j = entity.ag;
|
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
||||||
timings.entityTick.startTiming(); // Spigot
|
timings.entityTick.startTiming(); // Spigot
|
||||||
guardEntityList = true; // Spigot
|
guardEntityList = true; // Spigot
|
||||||
// CraftBukkit start - Use field for loop variable
|
// CraftBukkit start - Use field for loop variable
|
||||||
- for (this.tickPosition = 0; this.tickPosition < this.entityList.size(); ++this.tickPosition) {
|
- for (this.tickPosition = 0; this.tickPosition < this.entityList.size(); ++this.tickPosition) {
|
||||||
+ int entitiesThisCycle = 0;
|
+ int entitiesThisCycle = 0;
|
||||||
|
+ if (tickPosition < 0) tickPosition = 0;
|
||||||
+ for (entityLimiter.initTick();
|
+ for (entityLimiter.initTick();
|
||||||
+ entitiesThisCycle < entityList.size() && (entitiesThisCycle % 10 == 0 || entityLimiter.shouldContinue());
|
+ entitiesThisCycle < entityList.size() && (entitiesThisCycle % 10 == 0 || entityLimiter.shouldContinue());
|
||||||
+ tickPosition++, entitiesThisCycle++) {
|
+ tickPosition++, entitiesThisCycle++) {
|
||||||
|
|
Loading…
Reference in a new issue