This code is like opening up a cereal box and finding more and more useless bits of plastic each time you open the same box.
This commit is contained in:
parent
bddca1bc73
commit
eba1714644
3 changed files with 7 additions and 7 deletions
|
|
@ -1443,7 +1443,7 @@ namespace TShockAPI
|
||||||
int.TryParse(args.Parameters[1], out page);
|
int.TryParse(args.Parameters[1], out page);
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
|
|
||||||
List<Region> Regions = TShock.Regions.ListAllRegions();
|
List<RegionStore> Regions = TShock.Regions.ListAllRegions();
|
||||||
|
|
||||||
if (Regions.Count > (15 * (page - 1)))
|
if (Regions.Count > (15 * (page - 1)))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using TShockAPI.DB;
|
||||||
|
|
||||||
namespace TShockAPI
|
namespace TShockAPI
|
||||||
{
|
{
|
||||||
class Region
|
class RegionStore
|
||||||
{
|
{
|
||||||
public int X1;
|
public int X1;
|
||||||
public int X2;
|
public int X2;
|
||||||
|
|
@ -14,7 +14,7 @@ namespace TShockAPI
|
||||||
public int Y2;
|
public int Y2;
|
||||||
public int IsProtected;
|
public int IsProtected;
|
||||||
public string[] UserIDs;
|
public string[] UserIDs;
|
||||||
public Region(string tX1, string tX2, string tY1, string tY2, int tIsProtected, string[] tUserIDs)
|
public RegionStore(string tX1, string tX2, string tY1, string tY2, int tIsProtected, string[] tUserIDs)
|
||||||
{
|
{
|
||||||
X1 = Convert.ToInt32(tX1);
|
X1 = Convert.ToInt32(tX1);
|
||||||
X2 = Convert.ToInt32(tX2);
|
X2 = Convert.ToInt32(tX2);
|
||||||
|
|
@ -24,7 +24,7 @@ namespace TShockAPI
|
||||||
UserIDs = tUserIDs;
|
UserIDs = tUserIDs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Region(int tX1, int tX2, int tY1, int tY2, int tIsProtected, string[] tUserIDs)
|
public RegionStore(int tX1, int tX2, int tY1, int tY2, int tIsProtected, string[] tUserIDs)
|
||||||
{
|
{
|
||||||
X1 = Convert.ToInt32(tX1);
|
X1 = Convert.ToInt32(tX1);
|
||||||
X2 = Convert.ToInt32(tX2);
|
X2 = Convert.ToInt32(tX2);
|
||||||
|
|
@ -34,7 +34,7 @@ namespace TShockAPI
|
||||||
UserIDs = tUserIDs;
|
UserIDs = tUserIDs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Region(string tX1, string tX2, string tY1, string tY2)
|
public RegionStore(string tX1, string tX2, string tY1, string tY2)
|
||||||
{
|
{
|
||||||
X1 = Convert.ToInt32(tX1);
|
X1 = Convert.ToInt32(tX1);
|
||||||
X2 = Convert.ToInt32(tX2);
|
X2 = Convert.ToInt32(tX2);
|
||||||
|
|
@ -42,7 +42,7 @@ namespace TShockAPI
|
||||||
Y2 = Convert.ToInt32(tY2);
|
Y2 = Convert.ToInt32(tY2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Region(int tX1, int tX2, int tY1, int tY2)
|
public RegionStore(int tX1, int tX2, int tY1, int tY2)
|
||||||
{
|
{
|
||||||
X1 = Convert.ToInt32(tX1);
|
X1 = Convert.ToInt32(tX1);
|
||||||
X2 = Convert.ToInt32(tX2);
|
X2 = Convert.ToInt32(tX2);
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
<Compile Include="Net\WorldInfoMsg.cs" />
|
<Compile Include="Net\WorldInfoMsg.cs" />
|
||||||
<Compile Include="DB\RegionManager.cs" />
|
<Compile Include="DB\RegionManager.cs" />
|
||||||
<Compile Include="RconHandler.cs" />
|
<Compile Include="RconHandler.cs" />
|
||||||
<Compile Include="Region.cs" />
|
<Compile Include="RegionStore.cs" />
|
||||||
<Compile Include="RememberPosManager.cs" />
|
<Compile Include="RememberPosManager.cs" />
|
||||||
<Compile Include="Resources.Designer.cs">
|
<Compile Include="Resources.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue