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 authored and Major committed 2017-09-16 02:39:34 +01:00
1 parent cb14c32b71
commit b32b98eb86
6 files changed
+25 -33

No files matched your search

@@ -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}")
}