Skip to content

Commit 051f55d

Browse files
committed
Fix npc dialogue non-interaction
1 parent 0334ea1 commit 051f55d

File tree

1 file changed

+1
-1
lines changed
  • game/src/main/kotlin/content/entity/player/dialogue/type

1 file changed

+1
-1
lines changed

game/src/main/kotlin/content/entity/player/dialogue/type/NPCDialogue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ suspend inline fun <reified E : Expression> Player.npc(npcId: String, text: Stri
3030
suspend fun Player.npc(expression: String, text: String, largeHead: Boolean? = null, clickToContinue: Boolean = true, title: String? = null) {
3131
val target: NPC = get("dialogue_target") ?: throw IllegalArgumentException("No npc specified for dialogue. Please use player.talkWith(npc) or npc(npcId, text).")
3232
val id = target["transform_id", get<NPCDefinition>("dialogue_def")?.stringId ?: target.id]
33-
if (target["interacts", true]) {
33+
if (target.def["interacts", true]) {
3434
target.mode = Face(target, this, target.def["interact_range", 1])
3535
}
3636
npc(id, expression, text, largeHead, clickToContinue, title)

0 commit comments

Comments
 (0)