Skip to content

Commit 3205c11

Browse files
committed
feat: override names with packets for npc
1 parent 2934207 commit 3205c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/cc/modlabs/kpaper/npc/NPCImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ class NPCImpl(
15161516

15171517
val entity = this.getEntity() ?: return
15181518

1519-
val component = Component.text(customName)
1519+
val component = text(customName)
15201520

15211521
metadataList.add(EntityData(2, EntityDataTypes.OPTIONAL_ADV_COMPONENT, Optional.of(component)))
15221522

@@ -1529,7 +1529,7 @@ class NPCImpl(
15291529

15301530
val entity = this.getEntity() ?: return
15311531

1532-
val component = Component.text(description)
1532+
val component = text(description)
15331533

15341534
metadataList.add(EntityData(19, EntityDataTypes.OPTIONAL_ADV_COMPONENT, Optional.of(component)))
15351535

0 commit comments

Comments
 (0)