From bae0b973335ca89452da9e8681ee85f17d0d27bc Mon Sep 17 00:00:00 2001
From: Tecnio <50290580+Tecnio@users.noreply.github.com>
Date: Fri, 8 Mar 2024 21:53:07 +0300
Subject: [PATCH] Minor inconvenience
---
pom.xml | 2 +-
.../me/tecnio/ahm/data/tracker/impl/GhostBlockTracker.java | 4 ++--
src/main/resources/plugin.yml | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 06a10c4..b6d5100 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
me.tecnio
AntiHaxerman
- 4.0
+ 4.0.1
8
diff --git a/src/main/java/me/tecnio/ahm/data/tracker/impl/GhostBlockTracker.java b/src/main/java/me/tecnio/ahm/data/tracker/impl/GhostBlockTracker.java
index 2fdacd9..72d40ae 100644
--- a/src/main/java/me/tecnio/ahm/data/tracker/impl/GhostBlockTracker.java
+++ b/src/main/java/me/tecnio/ahm/data/tracker/impl/GhostBlockTracker.java
@@ -8,8 +8,8 @@
import me.tecnio.ahm.data.PlayerData;
import me.tecnio.ahm.data.tracker.Tracker;
import me.tecnio.ahm.exempt.ExemptType;
+import me.tecnio.ahm.util.type.EvictingMap;
-import java.util.HashMap;
import java.util.Map;
/**
@@ -17,7 +17,7 @@
*/
public class GhostBlockTracker extends Tracker {
- private final Map blockMap = new HashMap<>();
+ private final Map blockMap = new EvictingMap<>(10);
private double buffer;
public GhostBlockTracker(final PlayerData data) {
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 5ab22c3..30cb4e6 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,5 +1,5 @@
name: AntiHaxerman
-version: 4.0.0
+version: 4.0.1
main: me.tecnio.ahm.AHMPlugin
authors: [Tecnio, Incognito, aSwitch]
description: An open-sourced anti-cheat solution.