Pushed missing files
Started adding Replay Editor using johni0702's excellent ReplayStudio Library Added fully functional GuiDropdown GUI Element (useable in other projects as well)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package eu.crushedpixel.replaymod.studio;
|
||||
|
||||
public class VersionValidator {
|
||||
|
||||
public static final boolean isValid;
|
||||
|
||||
static {
|
||||
String version = Runtime.class.getPackage().getSpecificationVersion();
|
||||
if(version != null) {
|
||||
String[] split = version.split("\\.");
|
||||
if(split.length > 1) {
|
||||
isValid = Integer.valueOf(split[1]) >= 7;
|
||||
} else {
|
||||
isValid = false;
|
||||
}
|
||||
} else {
|
||||
isValid = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user