fix a myriad of other files

This commit is contained in:
Leah Anderson
2026-03-02 14:09:40 -07:00
parent b2e255fc05
commit d6d7fa7ada
66 changed files with 116 additions and 113 deletions

View File

@@ -50,8 +50,8 @@ int Entity::getSmallId()
#ifdef _WIN32
if( ((size_t)TlsGetValue(tlsIdx) != 0 ) )
#else
pthread_key_create(&tlsKey, nullptr);
if ( ((size_t)pthread_getspecific(tlsKey) != 0) )
pthread_key_create(&tlsIdx, nullptr);
if ( ((size_t)pthread_getspecific(tlsIdx) != 0) )
#endif
{
MinecraftServer *server = MinecraftServer::getInstance();
@@ -154,7 +154,7 @@ void Entity::freeSmallId(int index)
void Entity::useSmallIds()
{
TlsSetValue(tlsIdx,(LPVOID)1);
pthread_setspecific(tlsIdx,(LPVOID)1);
}
// Things also added here to be able to manage the concept of a number of extra "wandering" entities - normally path finding entities aren't allowed to