summaryrefslogtreecommitdiffstats
path: root/nms-patches/PlayerChunk.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-13 11:00:00 +1100
committermd_5 <git@md-5.net>2018-12-13 11:00:00 +1100
commitc64fe5080c996e8ea29b3e113043dd0aa962aaee (patch)
treebdd0883450532288f4d4e1f4687bad7aca234019 /nms-patches/PlayerChunk.patch
parenta3c2ec03148f9f38d4d27d045b1afee2fc6ff173 (diff)
downloadcraftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar.gz
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar.lz
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar.xz
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.zip
Mappings Update
Diffstat (limited to 'nms-patches/PlayerChunk.patch')
-rw-r--r--nms-patches/PlayerChunk.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/nms-patches/PlayerChunk.patch b/nms-patches/PlayerChunk.patch
deleted file mode 100644
index 14c17553..00000000
--- a/nms-patches/PlayerChunk.patch
+++ /dev/null
@@ -1,41 +0,0 @@
---- a/net/minecraft/server/PlayerChunk.java
-+++ b/net/minecraft/server/PlayerChunk.java
-@@ -7,21 +7,36 @@
- import javax.annotation.Nullable;
- import org.apache.logging.log4j.LogManager;
- import org.apache.logging.log4j.Logger;
-+// CraftBukkit Start
-+import org.bukkit.craftbukkit.chunkio.ChunkIOExecutor;
-+// CraftBukkit end
-
- public class PlayerChunk {
-
- private static final Logger a = LogManager.getLogger();
- private final PlayerChunkMap playerChunkMap;
-- private final List<EntityPlayer> c = Lists.newArrayList();
-+ public final List<EntityPlayer> c = Lists.newArrayList(); // CraftBukkit - public
- private final ChunkCoordIntPair location;
- private final short[] dirtyBlocks = new short[64];
- @Nullable
-- private Chunk chunk;
-+ public Chunk chunk; // CraftBukkit - public
- private int dirtyCount;
- private int h;
- private long i;
- private boolean done;
-
-+ // CraftBukkit start - add fields
-+ // You know the drill, https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse
-+ // All may seem good at first, but there's deeper issues if you play for a bit
-+ private boolean loadInProgress = false;
-+ private Runnable loadedRunnable = new Runnable() {
-+ public void run() {
-+ loadInProgress = false;
-+ PlayerChunk.this.chunk = PlayerChunk.this.playerChunkMap.getWorld().getChunkProviderServer().getChunkAt(location.x, location.z, true, true);
-+ }
-+ };
-+ // CraftBukkit end
-+
- public PlayerChunk(PlayerChunkMap playerchunkmap, int i, int j) {
- this.playerChunkMap = playerchunkmap;
- this.location = new ChunkCoordIntPair(i, j);