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 TechRebornWorldGen worldGen;
|
||||||
public static File configDir;
|
public static File configDir;
|
||||||
public VersionChecker versionChecker;
|
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() {
|
public Core() {
|
||||||
//Forge says to call it here, so yeah
|
//Forge says to call it here, so yeah
|
||||||
|
|
|
@ -379,9 +379,11 @@ public class ModBlocks {
|
||||||
registerBlock(HV_TRANSFORMER, "hv_transformer");
|
registerBlock(HV_TRANSFORMER, "hv_transformer");
|
||||||
GameRegistry.registerTileEntity(TileHVTransformer.class, "TileHVTransformerTR");
|
GameRegistry.registerTileEntity(TileHVTransformer.class, "TileHVTransformerTR");
|
||||||
|
|
||||||
AUTO_CRAFTING_TABLE = new BlockAutoCraftingTable();
|
if(Core.DEV_FEATURES){
|
||||||
registerBlock(AUTO_CRAFTING_TABLE, "auto_crafting_table");
|
AUTO_CRAFTING_TABLE = new BlockAutoCraftingTable();
|
||||||
GameRegistry.registerTileEntity(TileAutoCraftingTable.class, "TileAutoCraftingTableTR");
|
registerBlock(AUTO_CRAFTING_TABLE, "auto_crafting_table");
|
||||||
|
GameRegistry.registerTileEntity(TileAutoCraftingTable.class, "TileAutoCraftingTableTR");
|
||||||
|
}
|
||||||
|
|
||||||
IRON_FURNACE = new BlockIronFurnace();
|
IRON_FURNACE = new BlockIronFurnace();
|
||||||
registerBlock(IRON_FURNACE, "iron_furnace");
|
registerBlock(IRON_FURNACE, "iron_furnace");
|
||||||
|
|
Loading…
Reference in a new issue