summaryrefslogtreecommitdiffstats
path: root/nms-patches/CommandSpreadPlayers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/CommandSpreadPlayers.patch')
-rw-r--r--nms-patches/CommandSpreadPlayers.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/CommandSpreadPlayers.patch b/nms-patches/CommandSpreadPlayers.patch
index 652eaa86..c1af65a4 100644
--- a/nms-patches/CommandSpreadPlayers.patch
+++ b/nms-patches/CommandSpreadPlayers.patch
@@ -25,7 +25,7 @@
+
+ // CraftBukkit start - add a version of getType which force loads chunks
+ private static IBlockData getType(IBlockAccess iblockaccess, BlockPosition position) {
-+ ((ChunkProviderServer) ((World) iblockaccess).chunkProvider).getChunkAt(position.getX() >> 4, position.getZ() >> 4);
++ ((ChunkProviderServer) ((World) iblockaccess).chunkProvider).getChunkAt(position.getX() >> 4, position.getZ() >> 4, true, true);
+ return iblockaccess.getType(position);
+ }
+ // CraftBukkit end