diff --git a/src/main/java/org/samo_lego/taterzens/common/npc/TaterzenNPC.java b/src/main/java/org/samo_lego/taterzens/common/npc/TaterzenNPC.java index ff9a424bf..a09825187 100644 --- a/src/main/java/org/samo_lego/taterzens/common/npc/TaterzenNPC.java +++ b/src/main/java/org/samo_lego/taterzens/common/npc/TaterzenNPC.java @@ -499,14 +499,14 @@ public void aiStep() { public void tick() { super.tick(); - AABB box = this.getBoundingBox().inflate(4.0D); + AABB box = this.getBoundingBox().inflate(config.messages.speakDistance); List players = this.level().getEntitiesOfClass(ServerPlayer.class, box); if (!this.npcData.messages.isEmpty()) { for (ServerPlayer player : players) { // Filter them here (not use a predicate above) // as we need the original list below - if (((ITaterzenEditor) player).getEditorMode() == ITaterzenEditor.EditorMode.MESSAGES || this.distanceTo(player) > config.messages.speakDistance) { + if (((ITaterzenEditor) player).getEditorMode() == ITaterzenEditor.EditorMode.MESSAGES) { continue; } diff --git a/src/main/resources/taterzens.common.mixins.json b/src/main/resources/taterzens.common.mixins.json index 5f4536405..4cbc9377e 100644 --- a/src/main/resources/taterzens.common.mixins.json +++ b/src/main/resources/taterzens.common.mixins.json @@ -23,6 +23,5 @@ "client": [], "injectors": { "defaultRequire": 1 - }, - "refmap": "${refmap}" + } }