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.
This commit is contained in:
Lucas Nicodemus 2017-01-10 13:17:31 -07:00
parent c0a679b3f3
commit f264e2b060
No known key found for this signature in database
GPG key ID: CEE668CCE1BF2C7C

View file

@ -687,6 +687,7 @@ namespace TShockAPI
[Token]
private object WorldMeteor(RestRequestArgs args)
{
WorldGen.spawnMeteor = false;
WorldGen.dropMeteor();
return RestResponse("Meteor has been spawned");
}