From 7e5c1907d9e2fe47a939f569b0acbff715c18116 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 17 Feb 2017 10:53:40 -0800 Subject: [PATCH] Update spawnShortbow.js to stop after done spawning --- .../marketplace/shortbow/spawnShortbow.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/unpublishedScripts/marketplace/shortbow/spawnShortbow.js b/unpublishedScripts/marketplace/shortbow/spawnShortbow.js index 978edb34e9..3f155ecb48 100644 --- a/unpublishedScripts/marketplace/shortbow/spawnShortbow.js +++ b/unpublishedScripts/marketplace/shortbow/spawnShortbow.js @@ -169,16 +169,5 @@ function createLocalGame() { } } -if (Script.isClientScript()) { - createLocalGame(); - //var gameManager = new ShortbowGameManager(scoreboardID, bowPositions, spawnPositions); - - function cleanup() { - for (var i = 0; i < entityIDs.length; ++i) { - Entities.deleteEntity(entityIDs[i]); - } - gameManager.cleanup(); - } - - Script.scriptEnding.connect(cleanup); -} +createLocalGame(); +Script.stop();