Important bugfix

It appears someone had an extremely big brain moment.
This commit is contained in:
Video 2021-10-04 16:02:39 -06:00
parent 4d469cdc0a
commit 74a71b1843

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