3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 01:40:06 +01:00

Add null check to preloader

Dieser Commit ist enthalten in:
dordsor21 2021-08-17 15:38:47 +01:00
Ursprung 1ee4de0edf
Commit 0ffab8ee69
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -49,6 +49,7 @@ import com.fastasyncworldedit.core.math.LocalBlockVectorSet;
import com.fastasyncworldedit.core.math.MutableBlockVector2;
import com.fastasyncworldedit.core.math.MutableBlockVector3;
import com.fastasyncworldedit.core.object.FaweLimit;
import com.fastasyncworldedit.core.queue.implementation.preloader.Preloader;
import com.fastasyncworldedit.core.regions.RegionWrapper;
import com.fastasyncworldedit.core.util.EditSessionBuilder;
import com.fastasyncworldedit.core.util.ExtentTraverser;
@ -1253,7 +1254,10 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
}
// Cancel any preloader associated with the actor if present
if (getPlayer() != null) {
Fawe.imp().getPreloader(false).cancel(getPlayer());
Preloader preloader = Fawe.imp().getPreloader(false);
if (preloader != null) {
preloader.cancel(getPlayer());
}
}
// Enqueue it
if (getChangeSet() != null) {