mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Increment and get entity id, not the reverse
This commit is contained in:
parent
154ec5c08d
commit
fa778e2709
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ public class ReflectionManager {
|
||||||
|
|
||||||
if (increment) {
|
if (increment) {
|
||||||
if (NmsVersion.v1_14.isSupported()) {
|
if (NmsVersion.v1_14.isSupported()) {
|
||||||
return ((AtomicInteger) entityCount).getAndIncrement();
|
return ((AtomicInteger) entityCount).incrementAndGet();
|
||||||
} else {
|
} else {
|
||||||
int id = entityCount.intValue();
|
int id = entityCount.intValue();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue