mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 01:17:36 +00:00
Preloader is null for spigot users
This commit is contained in:
parent
51eee01eef
commit
664cd4e33d
@ -33,7 +33,9 @@ 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);
|
||||||
preloader.update(actor, world);
|
if (preloader != null) {
|
||||||
|
preloader.update(actor, world);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user