mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Avoid trying to get unloadQueue when field not found
This commit is contained in:
parent
27dc1d4a0b
commit
eecef06684
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user