Skip to content

Commit e9edc6a

Browse files
Update surf-npc-bukkit/src/main/kotlin/dev/slne/surf/npc/bukkit/listener/ConnectionListener.kt
Co-authored-by: Copilot <[email protected]>
1 parent 8d7f8ea commit e9edc6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surf-npc-bukkit/src/main/kotlin/dev/slne/surf/npc/bukkit/listener/ConnectionListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ConnectionListener : Listener {
1919
.filter {
2020
val npcLocation =
2121
it.getPropertyValue(NpcProperty.Internal.LOCATION, NpcLocation::class)
22-
npcLocation?.world == player.world.name
22+
npcLocation == null || npcLocation.world == player.world.name
2323
}
2424
.forEach {
2525
it.spawn(player.uniqueId)

0 commit comments

Comments
 (0)