We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374f6ed commit 2934207Copy full SHA for 2934207
1 file changed
src/main/kotlin/cc/modlabs/kpaper/npc/NPCImpl.kt
@@ -173,9 +173,9 @@ class NPCImpl(
173
174
override fun getMannequin(): Mannequin? = if (mannequin.isValid) mannequin else null
175
176
- override fun getEntity(): Entity? = getMannequin()
+ override fun getEntity(): Entity? = Bukkit.getEntity(npcUUID)
177
178
- override fun getID(): UUID? = npcUUID
+ override fun getID(): UUID = npcUUID
179
180
override fun getLivingEntity(): LivingEntity? = if (mannequin.isValid) mannequin else null
181
0 commit comments