1
0
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:
Zrips 2016-09-23 16:31:47 +03:00
parent 2285c5bc1c
commit 3d42fd8a8e

View File

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