mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Bump version to 9.2, add Minecraft version-based version handling
This commit is contained in:
1 parent
8e1ee9a581
commit
7dfc9db949
7 files changed
+60
-39
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user