From af35a98b1d382f7ac113f1c852ea37e99a219642 Mon Sep 17 00:00:00 2001 From: Take-John <105504345+takejohn@users.noreply.github.com> Date: Wed, 23 Aug 2023 08:54:42 +0900 Subject: [PATCH] Fix CoreProtect API hasPlaced() and hasRemoved() (#434) (#435) --- src/main/java/net/coreprotect/CoreProtectAPI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/coreprotect/CoreProtectAPI.java b/src/main/java/net/coreprotect/CoreProtectAPI.java index 776e92f..464d0ba 100755 --- a/src/main/java/net/coreprotect/CoreProtectAPI.java +++ b/src/main/java/net/coreprotect/CoreProtectAPI.java @@ -191,8 +191,8 @@ public class CoreProtectAPI extends Queue { boolean match = false; if (Config.getGlobal().API_ENABLED) { - long timestamp = System.currentTimeMillis() / 1000L; - long offsetTime = timestamp - offset; + long timestamp = System.currentTimeMillis(); + long offsetTime = timestamp - offset * 1000L; List check = blockLookup(block, time); for (String[] value : check) { @@ -212,8 +212,8 @@ public class CoreProtectAPI extends Queue { boolean match = false; if (Config.getGlobal().API_ENABLED) { - long timestamp = System.currentTimeMillis() / 1000L; - long offsetTime = timestamp - offset; + long timestamp = System.currentTimeMillis(); + long offsetTime = timestamp - offset * 1000L; List check = blockLookup(block, time); for (String[] value : check) {