Remove 'world' object from global script scope

This commit is contained in:
Gary Tierney
2017-05-28 23:07:05 +01:00
parent 05e20d9d51
commit 48e1726bc0
7 changed files with 25 additions and 31 deletions
@@ -1,7 +1,7 @@
import org.apollo.cache.def.NpcDefinition
import org.apollo.game.model.entity.Npc
start {
start { world ->
Spawns.list.forEach {
val definition = if (it.id != null) NpcDefinition.lookup(it.id) else lookup_npc(it.name)
if (definition == null) {
@@ -22,6 +22,3 @@ start {
world.register(npc)
}
}
stop {
}