Increment and get entity id, not the reverse
This commit is contained in:
parent
154ec5c08d
commit
fa778e2709
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user