Increment and get entity id, not the reverse

This commit is contained in:
libraryaddict 2020-05-07 22:05:03 +12:00
parent 154ec5c08d
commit fa778e2709
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -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();