From eecef06684b4e02320cb5787206f8f73ab9a12a9 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sat, 2 Apr 2016 19:01:04 -0500 Subject: [PATCH] Avoid trying to get unloadQueue when field not found --- src/main/java/org/dynmap/bukkit/BukkitVersionHelperGeneric.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;