Added configuration properties for redstoneChipset and pipeWaterproof
This commit is contained in:
parent
140d4b412c
commit
101d626c47
2 changed files with 7 additions and 2 deletions
|
@ -11,6 +11,7 @@ package buildcraft;
|
|||
import net.minecraft.src.Block;
|
||||
import net.minecraft.src.Item;
|
||||
import net.minecraft.src.ItemStack;
|
||||
import net.minecraftforge.common.Configuration;
|
||||
import net.minecraftforge.common.Property;
|
||||
import buildcraft.api.bptblocks.BptBlockInventory;
|
||||
import buildcraft.api.bptblocks.BptBlockRotateMeta;
|
||||
|
@ -61,6 +62,8 @@ public class BuildCraftSilicon {
|
|||
|
||||
Property assemblyTableId = BuildCraftCore.mainConfiguration.getOrCreateBlockIdProperty("assemblyTable.id", DefaultProps.ASSEMBLY_TABLE_ID);
|
||||
|
||||
Property redstoneChipsetId = BuildCraftCore.mainConfiguration.getOrCreateIntProperty("redstoneChipset.id", Configuration.CATEGORY_ITEM, DefaultProps.REDSTONE_CHIPSET);
|
||||
|
||||
BuildCraftCore.mainConfiguration.save();
|
||||
|
||||
laserBlock = new BlockLaser(Integer.parseInt(laserId.value));
|
||||
|
@ -71,7 +74,7 @@ public class BuildCraftSilicon {
|
|||
ProxyCore.proxy.addName(assemblyTableBlock.setBlockName("assemblyTableBlock"), "Assembly Table");
|
||||
ProxyCore.proxy.registerBlock(assemblyTableBlock);
|
||||
|
||||
redstoneChipset = new ItemRedstoneChipset(DefaultProps.REDSTONE_CHIPSET);
|
||||
redstoneChipset = new ItemRedstoneChipset(Integer.parseInt(redstoneChipsetId.value));
|
||||
redstoneChipset.setItemName("redstoneChipset");
|
||||
|
||||
}
|
||||
|
|
|
@ -236,7 +236,9 @@ public class BuildCraftTransport {
|
|||
|
||||
Property genericPipeId = BuildCraftCore.mainConfiguration.getOrCreateBlockIdProperty("pipe.id", DefaultProps.GENERIC_PIPE_ID);
|
||||
|
||||
pipeWaterproof = new ItemBuildCraft(DefaultProps.PIPE_WATERPROOF_ID).setIconIndex(2 * 16 + 1);
|
||||
Property pipeWaterproofId = BuildCraftCore.mainConfiguration.getOrCreateIntProperty("pipeWaterproof.id", Configuration.CATEGORY_ITEM, DefaultProps.PIPE_WATERPROOF_ID);
|
||||
|
||||
pipeWaterproof = new ItemBuildCraft(Integer.parseInt(pipeWaterproofId.value)).setIconIndex(2 * 16 + 1);
|
||||
pipeWaterproof.setItemName("pipeWaterproof");
|
||||
LanguageRegistry.addName(pipeWaterproof, "Pipe Waterproof");
|
||||
genericPipeBlock = new BlockGenericPipe(Integer.parseInt(genericPipeId.value));
|
||||
|
|
Loading…
Reference in a new issue