Version can now be a decimal.
Ignoring binaries and the like.
This commit is contained in:
parent
6355890b44
commit
3072b869f1
2 changed files with 7 additions and 2 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
/bin/*
|
||||||
|
/Content/*
|
||||||
|
/Fonts/*
|
||||||
|
/Images/*
|
||||||
|
/Sounds/*
|
||||||
|
|
@ -9,7 +9,7 @@ namespace Terraria
|
||||||
{
|
{
|
||||||
class ShankShock
|
class ShankShock
|
||||||
{
|
{
|
||||||
private static int version = 2;
|
private static double version = 2;
|
||||||
private static bool shownVersion = false;
|
private static bool shownVersion = false;
|
||||||
|
|
||||||
public static bool enableGuide = true;
|
public static bool enableGuide = true;
|
||||||
|
|
@ -52,7 +52,7 @@ namespace Terraria
|
||||||
Console.WriteLine(changes.Length);
|
Console.WriteLine(changes.Length);
|
||||||
Console.WriteLine(changes[0]);
|
Console.WriteLine(changes[0]);
|
||||||
Console.WriteLine(changes[1]);
|
Console.WriteLine(changes[1]);
|
||||||
if (Convert.ToInt32(changes[0]) > version)
|
if (Convert.ToDouble(changes[0]) > version)
|
||||||
{
|
{
|
||||||
sendMessage(ply, "This server is out of date. Version " + changes[0] + " is out.", color);
|
sendMessage(ply, "This server is out of date. Version " + changes[0] + " is out.", color);
|
||||||
for (int i = 1; i <= changes.Length; i++)
|
for (int i = 1; i <= changes.Length; i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue