Bump version to 9.2, add Minecraft version-based version handling

This commit is contained in:
aidancbrady committed 2016-08-11 12:15:16 -04:00
1 parent 8e1ee9a581
commit 7dfc9db949
7 files changed
+60 -39

No files matched your search

+26 -1
View File
@@ -1,7 +1,7 @@
package mekanism.common;
/**
* Version v1.0.4. Simple version handling for Mekanism.
* Version v2.0.0. Simple version handling for Mekanism.
* @author AidanBrady
*
*/
@@ -127,4 +127,29 @@ public class Version
return major + "." + minor + "." + build;
}
}
@Override
public int hashCode()
{
int result = 1;
result = 31 * result + build;
result = 31 * result + major;
result = 31 * result + minor;
return result;
}
@Override
public boolean equals(Object obj)
{
if(obj == null || getClass() != obj.getClass())
{
return false;
}
Version other = (Version)obj;
return build == other.build && major == other.major && minor == other.minor;
}
}