mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-08 00:11:28 +01:00
Don't check for global timer if regular timer has block id
This commit is contained in:
parent
2285c5bc1c
commit
3d42fd8a8e
@ -281,7 +281,7 @@ public class JobsPaymentListener implements Listener {
|
||||
return;
|
||||
|
||||
// Global block timer
|
||||
if (Jobs.getGCManager().useGlobalTimer) {
|
||||
if (Jobs.getGCManager().useGlobalTimer && !Jobs.getRestrictedBlockManager().restrictedBlocksTimer.containsKey(block.getTypeId())) {
|
||||
if (block.getState().hasMetadata(GlobalMetadata)) {
|
||||
long currentTime = System.currentTimeMillis();
|
||||
List<MetadataValue> meta = block.getState().getMetadata(GlobalMetadata);
|
||||
|
Loading…
Reference in New Issue
Block a user