Disable dev features by default

This commit is contained in:
modmuss50 2017-06-20 22:04:39 +01:00
parent 59a92a43c6
commit 1bc724ebfc
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
2 changed files with 7 additions and 3 deletions

View file

@ -77,6 +77,8 @@ public class Core {
public static TechRebornWorldGen worldGen;
public static File configDir;
public VersionChecker versionChecker;
//enable dev featues with -Dtechreborn.devFeatues=true
public static final boolean DEV_FEATURES = Boolean.parseBoolean(System.getProperty("techreborn.devFeatues", "false"));
public Core() {
//Forge says to call it here, so yeah

View file

@ -379,9 +379,11 @@ public class ModBlocks {
registerBlock(HV_TRANSFORMER, "hv_transformer");
GameRegistry.registerTileEntity(TileHVTransformer.class, "TileHVTransformerTR");
AUTO_CRAFTING_TABLE = new BlockAutoCraftingTable();
registerBlock(AUTO_CRAFTING_TABLE, "auto_crafting_table");
GameRegistry.registerTileEntity(TileAutoCraftingTable.class, "TileAutoCraftingTableTR");
if(Core.DEV_FEATURES){
AUTO_CRAFTING_TABLE = new BlockAutoCraftingTable();
registerBlock(AUTO_CRAFTING_TABLE, "auto_crafting_table");
GameRegistry.registerTileEntity(TileAutoCraftingTable.class, "TileAutoCraftingTableTR");
}
IRON_FURNACE = new BlockIronFurnace();
registerBlock(IRON_FURNACE, "iron_furnace");