Mappings Update

This commit is contained in:
md_5
2018-12-13 11:00:00 +11:00
parent a3c2ec0314
commit c64fe5080c
80 changed files with 469 additions and 518 deletions

View File

@@ -19,7 +19,7 @@
public PlayerChunkMap(WorldServer worldserver) {
this.world = worldserver;
@@ -107,16 +112,18 @@
@@ -103,16 +108,18 @@
if (this.l && i % 4L == 0L) {
this.l = false;
@@ -42,7 +42,7 @@
}
if (!this.h.isEmpty()) {
@@ -141,7 +148,11 @@
@@ -137,7 +144,11 @@
break;
}
}
@@ -54,7 +54,7 @@
}
}
@@ -203,6 +214,16 @@
@@ -199,6 +210,16 @@
return playerchunk;
}
@@ -62,7 +62,7 @@
+ public final boolean isChunkInUse(int x, int z) {
+ PlayerChunk pi = getChunk(x, z);
+ if (pi != null) {
+ return (pi.c.size() > 0);
+ return (pi.players.size() > 0);
+ }
+ return false;
+ }
@@ -71,7 +71,7 @@
public void flagDirty(BlockPosition blockposition) {
int i = blockposition.getX() >> 4;
int j = blockposition.getZ() >> 4;
@@ -221,12 +242,22 @@
@@ -217,12 +238,22 @@
entityplayer.d = entityplayer.locX;
entityplayer.e = entityplayer.locZ;
@@ -95,7 +95,7 @@
this.managedPlayers.add(entityplayer);
this.e();
}
@@ -270,11 +301,14 @@
@@ -266,11 +297,14 @@
int j1 = i - k;
int k1 = j - l;
@@ -111,7 +111,7 @@
}
if (!this.a(l1 - j1, i2 - k1, i, j, i1)) {
@@ -290,6 +324,13 @@
@@ -286,6 +320,13 @@
entityplayer.d = entityplayer.locX;
entityplayer.e = entityplayer.locZ;
this.e();
@@ -125,7 +125,7 @@
}
}
}
@@ -374,4 +415,47 @@
@@ -370,4 +411,47 @@
}
}