mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user