From 985f890153309e5c4672caa9fdf3754d846e0668 Mon Sep 17 00:00:00 2001 From: White Date: Thu, 16 Jul 2015 13:00:43 +0930 Subject: [PATCH] Removed duplicate REST port assign Fixed a typo --- TShockAPI/TShock.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index ba060a38..762ddeef 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -281,7 +281,6 @@ namespace TShockAPI RememberedPos = new RememberedPosManager(DB); CharacterDB = new CharacterManager(DB); RestApi = new SecureRest(Netplay.ServerIP, Config.RestApiPort); - RestApi.Port = Config.RestApiPort; RestManager = new RestManager(RestApi); RestManager.RegisterRestfulCommands(); @@ -1567,7 +1566,7 @@ namespace TShockAPI /// tileX - The x coordinate of the tile. /// tileY - The y coordinate of the tile. /// paint - Whether or not the tile is paint. - /// bool - True if the player should not be able to modify a the tile. + /// bool - True if the player should not be able to modify the tile. public static bool CheckTilePermission(TSPlayer player, int tileX, int tileY, bool paint = false) { if ((!paint && !player.Group.HasPermission(Permissions.canbuild)) ||