From d9ebb4e3ef46197624231da2c390107db6f08f94 Mon Sep 17 00:00:00 2001 From: FinnHornhoover <30576665+FinnHornhoover@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:11:21 +0300 Subject: [PATCH] only allow barkers of simple npcs Co-authored-by: Gent Semaj --- src/NPCManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NPCManager.cpp b/src/NPCManager.cpp index cb15ca3..bd72fb0 100644 --- a/src/NPCManager.cpp +++ b/src/NPCManager.cpp @@ -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();