Preloader is null for spigot users

Dieser Commit ist enthalten in:
dordsor21 2021-08-17 18:06:57 +01:00
Ursprung 51eee01eef
Commit 664cd4e33d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -33,8 +33,10 @@ public @interface Preload {
public void preload(Actor actor, InjectedValueAccess context) { public void preload(Actor actor, InjectedValueAccess context) {
World world = context.injectedValue(Key.of(EditSession.class)).get().getWorld(); World world = context.injectedValue(Key.of(EditSession.class)).get().getWorld();
Preloader preloader = Fawe.imp().getPreloader(true); Preloader preloader = Fawe.imp().getPreloader(true);
if (preloader != null) {
preloader.update(actor, world); preloader.update(actor, world);
} }
}
}, },
NEVER {}; NEVER {};