mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-27 22:10:35 +00:00
EntityType -> EntityKind
This commit is contained in:
@@ -353,7 +353,7 @@ void PlayerManager::sendToViewable(CNSocket* sock, void* buf, uint32_t type, siz
|
||||
for (auto it = plr->viewableChunks.begin(); it != plr->viewableChunks.end(); it++) {
|
||||
Chunk* chunk = *it;
|
||||
for (const EntityRef& ref : chunk->entities) {
|
||||
if (ref.type != EntityType::PLAYER || ref.sock == sock)
|
||||
if (ref.kind != EntityKind::PLAYER || ref.sock == sock)
|
||||
continue;
|
||||
|
||||
ref.sock->sendPacket(buf, type, size);
|
||||
|
||||
Reference in New Issue
Block a user