From f8db197c1311ef703a09e70f4a11ef35f907d3ae Mon Sep 17 00:00:00 2001 From: thispixel Date: Sun, 31 Jan 2016 16:28:20 +0000 Subject: [PATCH] fixes issue #143 - ::mass command not using the correct arguments to spawn npcs --- data/plugins/cmd/npc/spawn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/cmd/npc/spawn.rb b/data/plugins/cmd/npc/spawn.rb index 6be0229a..57cd88e1 100644 --- a/data/plugins/cmd/npc/spawn.rb +++ b/data/plugins/cmd/npc/spawn.rb @@ -54,7 +54,7 @@ on :command, :mass, RIGHTS_ADMIN do |player, command| (min_x..max_x).each do |x| (min_y..max_y).each do |y| - $world.register(Npc.new(id, Position.new(x, y, z))) + $world.register(Npc.new($world, id, Position.new(x, y, z))) end end