diff --git a/src/main/java/org/dynmap/bukkit/BukkitVersionHelperGeneric.java b/src/main/java/org/dynmap/bukkit/BukkitVersionHelperGeneric.java index f52bb57a..2a4309ce 100644 --- a/src/main/java/org/dynmap/bukkit/BukkitVersionHelperGeneric.java +++ b/src/main/java/org/dynmap/bukkit/BukkitVersionHelperGeneric.java @@ -318,7 +318,7 @@ public abstract class BukkitVersionHelperGeneric extends BukkitVersionHelper { /* Get unload queue for given NMS world */ public Object getUnloadQueue(World world) { Object cps = getFieldValue(getNMSWorld(world), nmsw_chunkproviderserver, null); // Get chunkproviderserver - if(cps != null) { + if ((cps != null) && (cps_unloadqueue != null)) { return getFieldValue(cps, cps_unloadqueue, null); } return null;