Skip to content

Commit

Permalink
only allow barkers of simple npcs
Browse files Browse the repository at this point in the history
Co-authored-by: Gent Semaj <gsemaj@proton.me>
  • Loading branch information
FinnHornhoover and yungcomputerchair committed Dec 12, 2023
1 parent 73c610b commit d9ebb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NPCManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d9ebb4e

Please sign in to comment.