Merge pull request #156 from AtlasMediaGroup/critical-inspect-bugfix

Critical Bugfix
This commit is contained in:
Paldiu 2021-10-04 17:59:10 -05:00 committed by GitHub
commit a728ec24d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,6 @@ public class CoreProtectBridge extends FreedomService
if (block != null) if (block != null)
{ {
event.setCancelled(true); event.setCancelled(true);
List<String[]> lookup = coreProtect.blockLookup(block, -1);
int cooldownTime = 3; int cooldownTime = 3;
@ -298,6 +297,8 @@ public class CoreProtectBridge extends FreedomService
} }
} }
List<String[]> lookup = coreProtect.blockLookup(block, -1);
if (!plugin.al.isAdmin(player)) if (!plugin.al.isAdmin(player))
{ {
cooldown.put(player.getName(), System.currentTimeMillis()); cooldown.put(player.getName(), System.currentTimeMillis());