From f264e2b06062b3e3d1a97f2a1733318d2ba0ddc3 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 10 Jan 2017 13:17:31 -0700 Subject: [PATCH] Add parity in REST /world/meteor with /dropmeteor functionality See #1361 It looks like we're setting spawnMeteor before executing WorldGen.dropMeteor() in the command but not in the REST API. This makes the two code paths behave the same. --- TShockAPI/Rest/RestManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index 20e0ddb2..a6152b70 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -687,6 +687,7 @@ namespace TShockAPI [Token] private object WorldMeteor(RestRequestArgs args) { + WorldGen.spawnMeteor = false; WorldGen.dropMeteor(); return RestResponse("Meteor has been spawned"); }