Disable dev features by default
This commit is contained in:
parent
59a92a43c6
commit
1bc724ebfc
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue