SPIGOT-2303: Use getChunkIfLoaded

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-05-22 13:57:44 +10:00
parent ecb71842df
commit ba115c957b

View file

@ -63,7 +63,7 @@
+ }
+
+ public Chunk getChunkIfLoaded(int x, int z) {
+ return ((ChunkProviderServer) this.chunkProvider).getLoadedChunkAt(x, z);
+ return ((ChunkProviderServer) this.chunkProvider).getChunkIfLoaded(x, z);
+ }
+
+ protected World(IDataManager idatamanager, WorldData worlddata, WorldProvider worldprovider, MethodProfiler methodprofiler, boolean flag, ChunkGenerator gen, org.bukkit.World.Environment env) {