mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
Fix npc spawning command.
This commit is contained in:
@@ -28,7 +28,7 @@ on :command, :spawn, RIGHTS_ADMIN do |player, command|
|
|||||||
position = Position.new(args[1].to_i, args[2].to_i, height)
|
position = Position.new(args[1].to_i, args[2].to_i, height)
|
||||||
end
|
end
|
||||||
|
|
||||||
$world.register(Npc.new(id, position))
|
$world.register(Npc.new($world, id, position))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Mass spawns npcs around the player.
|
# Mass spawns npcs around the player.
|
||||||
|
|||||||
Reference in New Issue
Block a user