mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Remove 'world' object from global script scope
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user