From fa778e2709d3f1ed27b53acb5033f1eedaeef819 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 7 May 2020 22:05:03 +1200 Subject: [PATCH] Increment and get entity id, not the reverse --- .../disguise/utilities/reflection/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index 7854ccdd..963c5538 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -214,7 +214,7 @@ public class ReflectionManager { if (increment) { if (NmsVersion.v1_14.isSupported()) { - return ((AtomicInteger) entityCount).getAndIncrement(); + return ((AtomicInteger) entityCount).incrementAndGet(); } else { int id = entityCount.intValue();