Avoid trying to get unloadQueue when field not found

This commit is contained in:
Mike Primm 2016-04-02 19:01:04 -05:00
parent 27dc1d4a0b
commit eecef06684

View File

@ -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;