Preloader is null for spigot users

This commit is contained in:
dordsor21 2021-08-17 18:06:57 +01:00
parent 51eee01eef
commit 664cd4e33d
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -33,8 +33,10 @@ 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);
if (preloader != null) {
preloader.update(actor, world);
}
}
},
NEVER {};