Skip to content

Commit 2934207

Browse files
committed
feat: override names with packets for npc
1 parent 374f6ed commit 2934207

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ class NPCImpl(
173173

174174
override fun getMannequin(): Mannequin? = if (mannequin.isValid) mannequin else null
175175

176-
override fun getEntity(): Entity? = getMannequin()
176+
override fun getEntity(): Entity? = Bukkit.getEntity(npcUUID)
177177

178-
override fun getID(): UUID? = npcUUID
178+
override fun getID(): UUID = npcUUID
179179

180180
override fun getLivingEntity(): LivingEntity? = if (mannequin.isValid) mannequin else null
181181

0 commit comments

Comments
 (0)