mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Share kotlin version config between buildSrc and project (#353)
* Share kotlin version config between buildSrc and project * Use built-in Kotlin MessageCollector
This commit is contained in:
@@ -3,7 +3,7 @@ import org.apollo.game.model.entity.Npc
|
||||
|
||||
start { world ->
|
||||
Spawns.list.forEach {
|
||||
val definition = if (it.id != null) NpcDefinition.lookup(it.id) else lookup_npc(it.name)
|
||||
val definition = if (it.id != null) NpcDefinition.lookup(it.id!!) else lookup_npc(it.name)
|
||||
if (definition == null) {
|
||||
throw IllegalArgumentException("Invalid NPC name or ID ${it.name}, ${it.id}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user