From 664cd4e33d6fcf4f26b64178f2aca9ac8e573abb Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 17 Aug 2021 18:06:57 +0100 Subject: [PATCH] Preloader is null for spigot users --- .../com/sk89q/worldedit/command/util/annotation/Preload.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/annotation/Preload.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/annotation/Preload.java index 29ffc0168..3c1104321 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/annotation/Preload.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/annotation/Preload.java @@ -33,7 +33,9 @@ public @interface Preload { public void preload(Actor actor, InjectedValueAccess context) { World world = context.injectedValue(Key.of(EditSession.class)).get().getWorld(); Preloader preloader = Fawe.imp().getPreloader(true); - preloader.update(actor, world); + if (preloader != null) { + preloader.update(actor, world); + } } },