Fix npc spawning command.

This commit is contained in:
Major-
2015-08-29 12:36:08 +01:00
parent 888230b768
commit 81a763cd69
+1 -1
View File
@@ -28,7 +28,7 @@ on :command, :spawn, RIGHTS_ADMIN do |player, command|
position = Position.new(args[1].to_i, args[2].to_i, height)
end
$world.register(Npc.new(id, position))
$world.register(Npc.new($world, id, position))
end
# Mass spawns npcs around the player.