Added version toggle

This commit is contained in:
Anuken
2019-05-01 20:51:44 -04:00
parent 2d3fd513d8
commit 5e5b719704
2 changed files with 4 additions and 1 deletions

View File

@@ -19,8 +19,12 @@ public class Version{
public static int build = 0;
/** Revision number. Used for hotfixes. Does not affect server compatibility. */
public static int revision = 0;
/** Whether to load version info at all.*/
public static boolean enabled = true;
public static void init(){
if(!enabled) return;
try{
FileHandle file = Core.files.internal("version.properties");

View File

@@ -60,6 +60,5 @@ public class BundleLoader{
if(!headless) Log.info("Got locale: {0}", locale);
Core.bundle = I18NBundle.createBundle(handle, locale);
}
}
}