mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Check for null
This commit is contained in:
parent
d227d9d2b8
commit
f79cdf3d60
@ -1117,7 +1117,7 @@ public class Jobs extends JavaPlugin {
|
||||
return false;
|
||||
}
|
||||
getBpManager().add(block, cd);
|
||||
if (cd == 0 && getGCManager().useGlobalTimer) {
|
||||
if ((cd == null || cd == 0) && getGCManager().useGlobalTimer) {
|
||||
getBpManager().add(block, getGCManager().globalblocktimer);
|
||||
}
|
||||
} else if (getGCManager().useGlobalTimer) {
|
||||
|
Loading…
Reference in New Issue
Block a user