This commit is contained in:
Jesse Boyd 2018-03-26 20:35:56 +11:00
parent 18c71453ce
commit 48992d2a4a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 12 additions and 0 deletions

View File

@ -95,6 +95,18 @@ public abstract class BukkitQueue_0<CHUNK, CHUNKSECTIONS, SECTION> extends NMSMa
return super.supports(capability);
}
@Override
public void sendChunk(FaweChunk fc) {
if (!Fawe.isMainThread()) {
startSet(true);
try {
super.sendChunk(fc);
} finally {
endSet(true);
}
}
}
@Override
public void sendChunkUpdate(FaweChunk chunk, FawePlayer... players) {
if (supports(Capability.CHUNK_PACKETS)) {