From 151457628192009b37b04b1eaf41e403c8ffef2c Mon Sep 17 00:00:00 2001 From: Emily <35617540+emilyy-dev@users.noreply.github.com> Date: Mon, 17 May 2021 15:19:02 -0300 Subject: [PATCH] Fix Counter#decrement recursive call (#5665) --- Spigot-API-Patches/0004-Timings-v2.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-API-Patches/0004-Timings-v2.patch b/Spigot-API-Patches/0004-Timings-v2.patch index 31dd69019..dbbbd2fc0 100644 --- a/Spigot-API-Patches/0004-Timings-v2.patch +++ b/Spigot-API-Patches/0004-Timings-v2.patch @@ -2018,7 +2018,7 @@ index 0000000000000000000000000000000000000000..632c4961515f5052551f841cfa840e60 +} diff --git a/src/main/java/co/aikar/util/Counter.java b/src/main/java/co/aikar/util/Counter.java new file mode 100644 -index 0000000000000000000000000000000000000000..80155072d1004e34e04342d434cf7d75f0b7e29d +index 0000000000000000000000000000000000000000..eff63c371c39e21a5a9cb5af8c2dcf78a60dd52b --- /dev/null +++ b/src/main/java/co/aikar/util/Counter.java @@ -0,0 +1,38 @@ @@ -2041,7 +2041,7 @@ index 0000000000000000000000000000000000000000..80155072d1004e34e04342d434cf7d75 + return increment(key, 1); + } + public long decrement(@Nullable T key, long amount) { -+ return decrement(key, -amount); ++ return increment(key, -amount); + } + public long increment(@Nullable T key, long amount) { + Long count = this.getCount(key);