diff --git a/Changelog.md b/Changelog.md index c643583aa..ed8f56053 100644 --- a/Changelog.md +++ b/Changelog.md @@ -28,7 +28,7 @@ Changelog for versions since 2.0.0. - The `health` key overrides the entity max health attribute - The `damage` key overrides the entity attack damage attribute - The `level` key can be used to define the AuraMobs or MythicMobs level - - The default vertical and horizontal velocities when caught can be overridden with `entity.horizontal` and `entity.vertical` + - The default vertical and horizontal velocities when caught can be overridden with `velocity.horizontal` and `velocity.vertical` - The keys `hand`, `off_hand`, `feet`, `legs`, `chest`, and `head` are used to define equipment on the spawned entity - The value is a mapping in the same item format as regular item loot (Using keys `material`, `enchantments`, etc.) - Add boss bar animation using delay when upgrading progress diff --git a/bukkit/src/main/java/dev/aurelium/auraskills/bukkit/antiafk/handler/PositionHandler.java b/bukkit/src/main/java/dev/aurelium/auraskills/bukkit/antiafk/handler/PositionHandler.java index 2b5ef96c8..89089a7ac 100644 --- a/bukkit/src/main/java/dev/aurelium/auraskills/bukkit/antiafk/handler/PositionHandler.java +++ b/bukkit/src/main/java/dev/aurelium/auraskills/bukkit/antiafk/handler/PositionHandler.java @@ -17,7 +17,7 @@ public boolean failsCheck(CheckData data, Player player) { if (prevLoc == null) return false; - if (!Objects.equals(currentLoc.getWorld(), currentLoc.getWorld())) { + if (!Objects.equals(currentLoc.getWorld(), prevLoc.getWorld())) { data.resetCount(); return false; }