Merge pull request #1791 from Ristellise/worldfix

Fixed Command IDs
This commit is contained in:
Chris 2020-05-19 21:20:09 +09:30 committed by GitHub
commit f773142448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -4,6 +4,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
## Upcoming changes
* Fixed `/worldmode` command to correctly target world mode. (@Ristellise)
* Fixed NPC buff anticheat issue conflicting with Terraria gameplay changes (whips). (@Patrikkk)
* Renamed `/bloodmoon` to `/tbloodmoon` because of conflict with Terraria reserved words. (@hakusaro)

View file

@ -2145,10 +2145,10 @@ namespace TShockAPI
static Dictionary<string, int> _worldModes = new Dictionary<string, int>
{
{ "normal", 1 },
{ "expert", 2 },
{ "master", 3 },
{ "creative", 4 },
{ "normal", 0 },
{ "expert", 1 },
{ "master", 2 },
{ "creative", 3 },
};
private static void ChangeWorldMode(CommandArgs args)