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:
parent
c0a679b3f3
commit
f264e2b060
1 changed files with 1 additions and 0 deletions
|
|
@ -687,6 +687,7 @@ namespace TShockAPI
|
|||
[Token]
|
||||
private object WorldMeteor(RestRequestArgs args)
|
||||
{
|
||||
WorldGen.spawnMeteor = false;
|
||||
WorldGen.dropMeteor();
|
||||
return RestResponse("Meteor has been spawned");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue