Compare commits

...

2 Commits

Author SHA1 Message Date
FinnHornhoover 45201390de
Merge b0afbb01f5 into cd265af8e0 2023-12-12 14:11:25 +03:00
FinnHornhoover b0afbb01f5
only allow barkers of simple npcs
Co-authored-by: Gent Semaj <gsemaj@proton.me>
2023-12-12 14:11:21 +03:00
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static void npcBarkHandler(CNSocket* sock, CNPacketData* data) {
for (Chunk* chunk : plr->viewableChunks) {
for (auto ent = chunk->entities.begin(); ent != chunk->entities.end(); ent++) {
if (ent->kind == EntityKind::PLAYER)
if (ent->kind != EntityKind::SIMPLE_NPC)
continue;
BaseNPC* npc = (BaseNPC*)ent->getEntity();