Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jun 4, 2024
1 parent dcf26bc commit 2911606
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void onSignClick(PlayerInteractEvent event) {
}

Long lastClick = clickCache.get(player.getUniqueId());
if (lastClick == null || (System.currentTimeMillis() - lastClick.longValue() > 50)) {
if (lastClick == null || (System.currentTimeMillis() - lastClick.longValue() < 50)) {
// Spam click, just add to the map
MovecraftRepair.getInstance().getLogger().info("Spam for " + player.getUniqueId());
clickCache.put(player.getUniqueId(), System.currentTimeMillis());
Expand Down

0 comments on commit 2911606

Please sign in to comment.