From b65d75ab0d905235fd16ea4d284be17155b4f99e Mon Sep 17 00:00:00 2001 From: Aaron Brock Date: Tue, 7 Jul 2015 00:38:00 -0400 Subject: [PATCH] Moo --- .../gameengine/game/components/spawn/SimpleSpawnComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php b/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php index ae8d8c26c..5ef9eadfb 100644 --- a/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php +++ b/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php @@ -50,11 +50,11 @@ class SimpleSpawnComponent implements SpawnComponent, Listener { { if (!($value instanceof Position)) unset($this->spawns[$key]); - $this->spawns[$key] = new Position($value->getX(), $value->getY(), $value->getZ(), $event->getLevel()); } - print (count($this->spawns) . " spawns Loaded"); + print (count($this->spawns) . " spawns Loaded\n"); + //Just testing to make sure it is a location. $pos = $this->spawns[array_rand($this->spawns)]; print "\nX: " . $pos->getX();