mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 23:33:49 +01:00
small fixes
This commit is contained in:
parent
8b23cde79f
commit
d465800774
2 changed files with 6 additions and 3 deletions
|
@ -44,5 +44,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ this.queue = null;
|
+ this.queue = null;
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
Runnable task;
|
Runnable task;
|
||||||
while ((task = this.queue.poll()) != null) {
|
- while ((task = this.queue.poll()) != null) {
|
||||||
|
+ while ((task = queue.poll()) != null) { // Paper
|
||||||
task.run();
|
task.run();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+
|
+
|
||||||
+ gone.remove(player);
|
+ gone.remove(player);
|
||||||
+
|
+
|
||||||
+ final SectionPos newPosition = player.getPlayerMapSection();
|
+ final SectionPos newPosition = player.getLastSectionPos();
|
||||||
+ final SectionPos oldPosition = this.players.put(player, newPosition);
|
+ final SectionPos oldPosition = this.players.put(player, newPosition);
|
||||||
+
|
+
|
||||||
+ if (oldPosition == null) {
|
+ if (oldPosition == null) {
|
||||||
|
@ -117,7 +117,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ int expectedEntries = (2 * viewDistance + 1);
|
+ int expectedEntries = (2 * viewDistance + 1);
|
||||||
+ expectedEntries *= expectedEntries;
|
+ expectedEntries *= expectedEntries;
|
||||||
+
|
+
|
||||||
+ final SectionPos currPosition = player.getPlayerMapSection();
|
+ final SectionPos currPosition = player.getLastSectionPos();
|
||||||
+
|
+
|
||||||
+ final int centerX = currPosition.getX();
|
+ final int centerX = currPosition.getX();
|
||||||
+ final int centerZ = currPosition.getZ();
|
+ final int centerZ = currPosition.getZ();
|
||||||
|
|
Loading…
Reference in a new issue