Expose the Entity Counter to allow plugins to use valid and non-conflicting Entity Ids

This commit is contained in:
MeFisto94
2020-08-28 01:41:26 +02:00
parent af1fabed04
commit 73b101005b
2 changed files with 46 additions and 34 deletions

View File

@@ -527,6 +527,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
Preconditions.checkArgument(dataVersion <= getDataVersion(), "Newer version! Server downgrades are not supported!");
return compound;
}
@Override
public int nextEntityId() {
return net.minecraft.world.entity.Entity.nextEntityId();
}
// Paper end
/**