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:
Gary Tierney
2017-09-16 02:39:34 +01:00
committed by Major
parent cb14c32b71
commit b32b98eb86
6 changed files with 25 additions and 33 deletions
@@ -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}")
}