mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Fix CraftBukkit comments.
This commit is contained in:
@@ -1086,8 +1086,8 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
|
||||
public void tickEntities() {
|
||||
// MethodProfiler.a("entities"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("global"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("entities"); // CraftBukkit - not in production code
|
||||
// MethodProfiler.a("global"); // CraftBukkit - not in production code
|
||||
|
||||
int i;
|
||||
Entity entity;
|
||||
@@ -1105,7 +1105,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.b("remove"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("remove"); // CraftBukkit - not in production code
|
||||
this.entityList.removeAll(this.J);
|
||||
|
||||
int j;
|
||||
@@ -1125,7 +1125,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
|
||||
this.J.clear();
|
||||
// MethodProfiler.b("regular"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("regular"); // CraftBukkit - not in production code
|
||||
|
||||
for (i = 0; i < this.entityList.size(); ++i) {
|
||||
entity = (Entity) this.entityList.get(i);
|
||||
@@ -1142,7 +1142,7 @@ public class World implements IBlockAccess {
|
||||
this.playerJoinedWorld(entity);
|
||||
}
|
||||
|
||||
// MethodProfiler.a("remove"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("remove"); // CraftBukkit - not in production code
|
||||
if (entity.dead) {
|
||||
j = entity.bX;
|
||||
k = entity.bZ;
|
||||
@@ -1154,10 +1154,10 @@ public class World implements IBlockAccess {
|
||||
this.d(entity);
|
||||
}
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
}
|
||||
|
||||
// MethodProfiler.b("tileEntities"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("tileEntities"); // CraftBukkit - not in production code
|
||||
this.S = true;
|
||||
Iterator iterator = this.h.iterator();
|
||||
|
||||
@@ -1186,7 +1186,7 @@ public class World implements IBlockAccess {
|
||||
this.N.clear();
|
||||
}
|
||||
|
||||
// MethodProfiler.b("pendingTileEntities"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("pendingTileEntities"); // CraftBukkit - not in production code
|
||||
if (!this.M.isEmpty()) {
|
||||
Iterator iterator1 = this.M.iterator();
|
||||
|
||||
@@ -1219,8 +1219,8 @@ public class World implements IBlockAccess {
|
||||
this.M.clear();
|
||||
}
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
}
|
||||
|
||||
public void a(Collection collection) {
|
||||
@@ -1254,7 +1254,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.a("chunkCheck"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("chunkCheck"); // CraftBukkit - not in production code
|
||||
if (Double.isNaN(entity.locX) || Double.isInfinite(entity.locX)) {
|
||||
entity.locX = entity.bI;
|
||||
}
|
||||
@@ -1292,7 +1292,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
if (flag && entity.bW && entity.passenger != null) {
|
||||
if (!entity.passenger.dead && entity.passenger.vehicle == entity) {
|
||||
this.playerJoinedWorld(entity.passenger);
|
||||
@@ -1715,13 +1715,13 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.a("mobSpawner"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("mobSpawner"); // CraftBukkit - not in production code
|
||||
// CraftBukkit start - Only call spawner if we have players online and the world allows for mobs or animals
|
||||
if ((this.allowMonsters || this.allowAnimals) && (this instanceof WorldServer && this.getServer().getHandle().players.size() > 0)) {
|
||||
SpawnerCreature.spawnEntities(this, this.allowMonsters, this.allowAnimals && this.worldData.f() % 400L == 0L);
|
||||
}
|
||||
// CraftBukkit end
|
||||
// MethodProfiler.b("chunkSource"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("chunkSource"); // CraftBukkit - not in production code
|
||||
this.chunkProvider.unloadChunks();
|
||||
int j = this.a(1.0F);
|
||||
|
||||
@@ -1731,16 +1731,16 @@ public class World implements IBlockAccess {
|
||||
|
||||
i = this.worldData.f() + 1L;
|
||||
if (i % (long) this.u == 0L) {
|
||||
// MethodProfiler.b("save"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("save"); // CraftBukkit - not in production code
|
||||
this.save(false, (IProgressUpdate) null);
|
||||
}
|
||||
|
||||
this.worldData.a(i);
|
||||
// MethodProfiler.b("tickPending"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("tickPending"); // CraftBukkit - not in production code
|
||||
this.a(false);
|
||||
// MethodProfiler.b("tickTiles"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("tickTiles"); // CraftBukkit - not in production code
|
||||
this.k();
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
}
|
||||
|
||||
private void z() {
|
||||
@@ -1858,8 +1858,8 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
|
||||
protected void k() {
|
||||
// this.T.clear(); // CraftBukkit -- removed
|
||||
// MethodProfiler.a("buildList"); // CraftBukkit -- not in production code
|
||||
// this.T.clear(); // CraftBukkit - removed
|
||||
// MethodProfiler.a("buildList"); // CraftBukkit - not in production code
|
||||
|
||||
int i;
|
||||
int j;
|
||||
@@ -1884,8 +1884,8 @@ public class World implements IBlockAccess {
|
||||
i = 0;
|
||||
int j1 = 0;
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// Iterator iterator = this.T.iterator(); CraftBukkit == removed
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
// Iterator iterator = this.T.iterator(); // CraftBukkit - removed
|
||||
|
||||
// CraftBukkit start
|
||||
for (long chunkCoord : this.T.popAll()) {
|
||||
@@ -1895,13 +1895,13 @@ public class World implements IBlockAccess {
|
||||
int k1 = chunkX * 16;
|
||||
|
||||
j = chunkZ * 16;
|
||||
// MethodProfiler.a("getChunk"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("getChunk"); // CraftBukkit - not in production code
|
||||
Chunk chunk = this.getChunkAt(chunkX, chunkZ);
|
||||
// CraftBukkit end
|
||||
|
||||
// MethodProfiler.b("tickChunk"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("tickChunk"); // CraftBukkit - not in production code
|
||||
chunk.i();
|
||||
// MethodProfiler.b("moodSound"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("moodSound"); // CraftBukkit - not in production code
|
||||
int l1;
|
||||
int i2;
|
||||
int j2;
|
||||
@@ -1927,7 +1927,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.b("thunder"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("thunder"); // CraftBukkit - not in production code
|
||||
if (this.random.nextInt(100000) == 0 && this.w() && this.v()) {
|
||||
this.l = this.l * 3 + 1013904223;
|
||||
l1 = this.l >> 2;
|
||||
@@ -1940,7 +1940,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.b("iceandsnow"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("iceandsnow"); // CraftBukkit - not in production code
|
||||
this.l = this.l * 3 + 1013904223;
|
||||
l1 = this.l >> 2;
|
||||
i2 = l1 & 15;
|
||||
@@ -1972,9 +1972,9 @@ public class World implements IBlockAccess {
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
// MethodProfiler.b("checkLight"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("checkLight"); // CraftBukkit - not in production code
|
||||
this.s(k1 + this.random.nextInt(16), this.random.nextInt(this.height), j + this.random.nextInt(16));
|
||||
// MethodProfiler.b("tickTiles"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.b("tickTiles"); // CraftBukkit - not in production code
|
||||
|
||||
for (l1 = 0; l1 < 20; ++l1) {
|
||||
this.l = this.l * 3 + 1013904223;
|
||||
@@ -1991,7 +1991,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2467,7 +2467,7 @@ public class World implements IBlockAccess {
|
||||
}
|
||||
|
||||
public PathEntity findPath(Entity entity, Entity entity1, float f) {
|
||||
// MethodProfiler.a("pathfind"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("pathfind"); // CraftBukkit - not in production code
|
||||
int i = MathHelper.floor(entity.locX);
|
||||
int j = MathHelper.floor(entity.locY);
|
||||
int k = MathHelper.floor(entity.locZ);
|
||||
@@ -2481,12 +2481,12 @@ public class World implements IBlockAccess {
|
||||
ChunkCache chunkcache = new ChunkCache(this, i1, j1, k1, l1, i2, j2);
|
||||
PathEntity pathentity = (new Pathfinder(chunkcache)).a(entity, entity1, f);
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
return pathentity;
|
||||
}
|
||||
|
||||
public PathEntity a(Entity entity, int i, int j, int k, float f) {
|
||||
// MethodProfiler.a("pathfind"); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a("pathfind"); // CraftBukkit - not in production code
|
||||
int l = MathHelper.floor(entity.locX);
|
||||
int i1 = MathHelper.floor(entity.locY);
|
||||
int j1 = MathHelper.floor(entity.locZ);
|
||||
@@ -2500,7 +2500,7 @@ public class World implements IBlockAccess {
|
||||
ChunkCache chunkcache = new ChunkCache(this, l1, i2, j2, k2, l2, i3);
|
||||
PathEntity pathentity = (new Pathfinder(chunkcache)).a(entity, i, j, k, f);
|
||||
|
||||
// MethodProfiler.a(); // CraftBukkit -- not in production code
|
||||
// MethodProfiler.a(); // CraftBukkit - not in production code
|
||||
return pathentity;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user