Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6209)

This commit is contained in:
Jake Potrebic 2021-07-16 18:48:27 -07:00 committed by GitHub
parent a5acf367a3
commit 7f89e96357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 158 additions and 158 deletions

View file

@ -246,10 +246,10 @@ index 57aa6d18d181c50071bcfcc933cde9fa828be792..ed3ce0f87eaf4777aedc93fe5bd67971
if (optional.isPresent()) {
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index b6134895d1b04d3ea7340e77f70efa23cff8b568..72c9ad9f75c20d6c1a6d54e2913e2f9918c11ffd 100644
index a4d05aeccc142808981f1ecebd001c905ae721ed..e6b7302554b2a54363d55e149744237679262174 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -287,6 +287,7 @@ public class CraftWorld implements World {
@@ -288,6 +288,7 @@ public class CraftWorld implements World {
@Override
public int getTileEntityCount() {
@ -257,7 +257,7 @@ index b6134895d1b04d3ea7340e77f70efa23cff8b568..72c9ad9f75c20d6c1a6d54e2913e2f99
// We don't use the full world tile entity list, so we must iterate chunks
Long2ObjectLinkedOpenHashMap<ChunkHolder> chunks = world.getChunkSource().chunkMap.visibleChunkMap;
int size = 0;
@@ -298,6 +299,7 @@ public class CraftWorld implements World {
@@ -299,6 +300,7 @@ public class CraftWorld implements World {
size += chunk.blockEntities.size();
}
return size;
@ -265,7 +265,7 @@ index b6134895d1b04d3ea7340e77f70efa23cff8b568..72c9ad9f75c20d6c1a6d54e2913e2f99
}
@Override
@@ -307,6 +309,7 @@ public class CraftWorld implements World {
@@ -308,6 +310,7 @@ public class CraftWorld implements World {
@Override
public int getChunkCount() {
@ -273,7 +273,7 @@ index b6134895d1b04d3ea7340e77f70efa23cff8b568..72c9ad9f75c20d6c1a6d54e2913e2f99
int ret = 0;
for (ChunkHolder chunkHolder : world.getChunkSource().chunkMap.visibleChunkMap.values()) {
@@ -315,7 +318,7 @@ public class CraftWorld implements World {
@@ -316,7 +319,7 @@ public class CraftWorld implements World {
}
}
@ -282,7 +282,7 @@ index b6134895d1b04d3ea7340e77f70efa23cff8b568..72c9ad9f75c20d6c1a6d54e2913e2f99
}
@Override
@@ -442,6 +445,14 @@ public class CraftWorld implements World {
@@ -443,6 +446,14 @@ public class CraftWorld implements World {
@Override
public Chunk[] getLoadedChunks() {