Avoid trying to get unloadQueue when field not found
This commit is contained in:
parent
27dc1d4a0b
commit
eecef06684
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue