static final vars are inlined during the compile step, making the version variables useless at runtime.

This commit is contained in:
CovertJaguar 2012-04-29 00:26:29 -07:00
parent 7e06c9d13d
commit 80a9bc9c6d
1 changed files with 21 additions and 0 deletions

View File

@ -642,6 +642,27 @@ public class ForgeHooks
public static final int revisionVersion = 3;
//This number is incremented every time Jenkins builds Forge, and never reset. Should always be 0 in the repo code.
public static final int buildVersion = 0;
public static int getMajorVersion()
{
return majorVersion;
}
public static int getMinorVersion()
{
return minorVersion;
}
public static int getRevisionVersion()
{
return revisionVersion;
}
public static int getBuildVersion()
{
return buildVersion;
}
static
{
plantGrassList = new ArrayList<ProbableItem>();