mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-23 05:40:08 +00:00
Compare commits
1 Commits
45201390de
...
cfce24e96b
Author | SHA1 | Date | |
---|---|---|---|
|
cfce24e96b |
@ -110,7 +110,7 @@ static void npcBarkHandler(CNSocket* sock, CNPacketData* data) {
|
|||||||
|
|
||||||
for (Chunk* chunk : plr->viewableChunks) {
|
for (Chunk* chunk : plr->viewableChunks) {
|
||||||
for (auto ent = chunk->entities.begin(); ent != chunk->entities.end(); ent++) {
|
for (auto ent = chunk->entities.begin(); ent != chunk->entities.end(); ent++) {
|
||||||
if (ent->kind != EntityKind::SIMPLE_NPC)
|
if (ent->kind == EntityKind::PLAYER)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
BaseNPC* npc = (BaseNPC*)ent->getEntity();
|
BaseNPC* npc = (BaseNPC*)ent->getEntity();
|
||||||
|
Loading…
Reference in New Issue
Block a user