Skip to content

Commit

Permalink
First draft. Still lots to do.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpw committed Mar 6, 2013
1 parent 5566098 commit e06e30d
Show file tree
Hide file tree
Showing 43 changed files with 168 additions and 501 deletions.
2 changes: 1 addition & 1 deletion .classpath
Expand Up @@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="common"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry combineaccessrules="false" kind="src" path="/Forge-Client"/>
<classpathentry combineaccessrules="false" kind="src" path="/Forge"/>
<classpathentry kind="output" path="bin"/>
</classpath>
16 changes: 8 additions & 8 deletions common/buildcraft/BuildCraftBuilders.java
Expand Up @@ -231,35 +231,35 @@ public void initialize(FMLPreInitializationEvent evt) {
fillerDestroy = fillerDestroyProp.getBoolean(DefaultProps.FILLER_DESTROY);

templateItem = new ItemBptTemplate(Integer.parseInt(templateItemId.value));
templateItem.setItemName("templateItem");
templateItem.setUnlocalizedName("templateItem");
LanguageRegistry.addName(templateItem, "Template");

blueprintItem = new ItemBptBluePrint(Integer.parseInt(blueprintItemId.value));
blueprintItem.setItemName("blueprintItem");
blueprintItem.setUnlocalizedName("blueprintItem");
LanguageRegistry.addName(blueprintItem, "Blueprint");

markerBlock = new BlockMarker(Integer.parseInt(markerId.value));
CoreProxy.proxy.registerBlock(markerBlock.setBlockName("markerBlock"));
CoreProxy.proxy.registerBlock(markerBlock.setUnlocalizedName("markerBlock"));
CoreProxy.proxy.addName(markerBlock, "Land Mark");

pathMarkerBlock = new BlockPathMarker(Integer.parseInt(pathMarkerId.value));
CoreProxy.proxy.registerBlock(pathMarkerBlock.setBlockName("pathMarkerBlock"));
CoreProxy.proxy.registerBlock(pathMarkerBlock.setUnlocalizedName("pathMarkerBlock"));
CoreProxy.proxy.addName(pathMarkerBlock, "Path Mark");

fillerBlock = new BlockFiller(Integer.parseInt(fillerId.value));
CoreProxy.proxy.registerBlock(fillerBlock.setBlockName("fillerBlock"));
CoreProxy.proxy.registerBlock(fillerBlock.setUnlocalizedName("fillerBlock"));
CoreProxy.proxy.addName(fillerBlock, "Filler");

builderBlock = new BlockBuilder(Integer.parseInt(builderId.value));
CoreProxy.proxy.registerBlock(builderBlock.setBlockName("builderBlock"));
CoreProxy.proxy.registerBlock(builderBlock.setUnlocalizedName("builderBlock"));
CoreProxy.proxy.addName(builderBlock, "Builder");

architectBlock = new BlockArchitect(Integer.parseInt(architectId.value));
CoreProxy.proxy.registerBlock(architectBlock.setBlockName("architectBlock"));
CoreProxy.proxy.registerBlock(architectBlock.setUnlocalizedName("architectBlock"));
CoreProxy.proxy.addName(architectBlock, "Architect Table");

libraryBlock = new BlockBlueprintLibrary(Integer.parseInt(libraryId.value));
CoreProxy.proxy.registerBlock(libraryBlock.setBlockName("libraryBlock"));
CoreProxy.proxy.registerBlock(libraryBlock.setUnlocalizedName("libraryBlock"));
CoreProxy.proxy.addName(libraryBlock, "Blueprint Library");

GameRegistry.registerTileEntity(TileMarker.class, "Marker");
Expand Down
14 changes: 7 additions & 7 deletions common/buildcraft/BuildCraftCore.java
Expand Up @@ -213,7 +213,7 @@ public void loadConfiguration(FMLPreInitializationEvent evt) {

Property wrenchId = BuildCraftCore.mainConfiguration.getItem("wrench.id", DefaultProps.WRENCH_ID);

wrenchItem = (new ItemWrench(wrenchId.getInt(DefaultProps.WRENCH_ID))).setIconIndex(0 * 16 + 2).setItemName("wrenchItem");
wrenchItem = (new ItemWrench(wrenchId.getInt(DefaultProps.WRENCH_ID))).setIconIndex(0 * 16 + 2).setUnlocalizedName("wrenchItem");
LanguageRegistry.addName(wrenchItem, "Wrench");

Property springId = BuildCraftCore.mainConfiguration.getBlock("springBlock.id", DefaultProps.SPRING_ID);
Expand All @@ -229,23 +229,23 @@ public void loadConfiguration(FMLPreInitializationEvent evt) {
BuildCraftCore.modifyWorld = modifyWorld.getBoolean(true);

if(BuildCraftCore.modifyWorld) {
springBlock = new BlockSpring(Integer.parseInt(springId.value)).setBlockName("eternalSpring");
springBlock = new BlockSpring(Integer.parseInt(springId.value)).setUnlocalizedName("eternalSpring");
GameRegistry.registerBlock(springBlock, "eternalSpring");
}

woodenGearItem = (new ItemBuildCraft(Integer.parseInt(woodenGearId.value))).setIconIndex(1 * 16 + 0).setItemName("woodenGearItem");
woodenGearItem = (new ItemBuildCraft(Integer.parseInt(woodenGearId.value))).setIconIndex(1 * 16 + 0).setUnlocalizedName("woodenGearItem");
LanguageRegistry.addName(woodenGearItem, "Wooden Gear");

stoneGearItem = (new ItemBuildCraft(Integer.parseInt(stoneGearId.value))).setIconIndex(1 * 16 + 1).setItemName("stoneGearItem");
stoneGearItem = (new ItemBuildCraft(Integer.parseInt(stoneGearId.value))).setIconIndex(1 * 16 + 1).setUnlocalizedName("stoneGearItem");
LanguageRegistry.addName(stoneGearItem, "Stone Gear");

ironGearItem = (new ItemBuildCraft(Integer.parseInt(ironGearId.value))).setIconIndex(1 * 16 + 2).setItemName("ironGearItem");
ironGearItem = (new ItemBuildCraft(Integer.parseInt(ironGearId.value))).setIconIndex(1 * 16 + 2).setUnlocalizedName("ironGearItem");
LanguageRegistry.addName(ironGearItem, "Iron Gear");

goldGearItem = (new ItemBuildCraft(Integer.parseInt(goldenGearId.value))).setIconIndex(1 * 16 + 3).setItemName("goldGearItem");
goldGearItem = (new ItemBuildCraft(Integer.parseInt(goldenGearId.value))).setIconIndex(1 * 16 + 3).setUnlocalizedName("goldGearItem");
LanguageRegistry.addName(goldGearItem, "Gold Gear");

diamondGearItem = (new ItemBuildCraft(Integer.parseInt(diamondGearId.value))).setIconIndex(1 * 16 + 4).setItemName("diamondGearItem");
diamondGearItem = (new ItemBuildCraft(Integer.parseInt(diamondGearId.value))).setIconIndex(1 * 16 + 4).setUnlocalizedName("diamondGearItem");
LanguageRegistry.addName(diamondGearItem, "Diamond Gear");
} finally {
mainConfiguration.save();
Expand Down
14 changes: 7 additions & 7 deletions common/buildcraft/BuildCraftEnergy.java
Expand Up @@ -120,27 +120,27 @@ public void initialize(FMLPreInitializationEvent evt) {
LanguageRegistry.addName(new ItemStack(engineBlock, 1, 1), "Steam Engine");
LanguageRegistry.addName(new ItemStack(engineBlock, 1, 2), "Combustion Engine");

oilStill = (new BlockOilStill(oilStillId.getInt(DefaultProps.OIL_STILL_ID), Material.water)).setBlockName("oil");
CoreProxy.proxy.addName(oilStill.setBlockName("oilStill"), "Oil");
oilStill = (new BlockOilStill(oilStillId.getInt(DefaultProps.OIL_STILL_ID), Material.water)).setUnlocalizedName("oil");
CoreProxy.proxy.addName(oilStill.setUnlocalizedName("oilStill"), "Oil");
CoreProxy.proxy.registerBlock(oilStill);

oilMoving = (new BlockOilFlowing(oilMovingId.getInt(DefaultProps.OIL_MOVING_ID), Material.water)).setBlockName("oil");
CoreProxy.proxy.addName(oilMoving.setBlockName("oilMoving"), "Oil");
oilMoving = (new BlockOilFlowing(oilMovingId.getInt(DefaultProps.OIL_MOVING_ID), Material.water)).setUnlocalizedName("oil");
CoreProxy.proxy.addName(oilMoving.setUnlocalizedName("oilMoving"), "Oil");
CoreProxy.proxy.registerBlock(oilMoving);

// Oil and fuel
if (oilMoving.blockID + 1 != oilStill.blockID)
throw new RuntimeException("Oil Still id must be Oil Moving id + 1");

fuel = new ItemBuildCraft(itemFuelId.getInt(DefaultProps.FUEL_ID)).setItemName("fuel");
fuel = new ItemBuildCraft(itemFuelId.getInt(DefaultProps.FUEL_ID)).setUnlocalizedName("fuel");
LanguageRegistry.addName(fuel, "Fuel");

MinecraftForge.EVENT_BUS.register(new OilBucketHandler());

bucketOil = (new ItemBucketOil(bucketOilId.getInt(DefaultProps.BUCKET_OIL_ID))).setItemName("bucketOil").setContainerItem(Item.bucketEmpty);
bucketOil = (new ItemBucketOil(bucketOilId.getInt(DefaultProps.BUCKET_OIL_ID))).setUnlocalizedName("bucketOil").setContainerItem(Item.bucketEmpty);
LanguageRegistry.addName(bucketOil, "Oil Bucket");

bucketFuel = new ItemBuildCraft(Integer.parseInt(bucketFuelId.value)).setItemName("bucketFuel").setContainerItem(Item.bucketEmpty);
bucketFuel = new ItemBuildCraft(Integer.parseInt(bucketFuelId.value)).setUnlocalizedName("bucketFuel").setContainerItem(Item.bucketEmpty);
bucketFuel.setIconIndex(0 * 16 + 3).setMaxStackSize(1);
LanguageRegistry.addName(bucketFuel, "Fuel Bucket");

Expand Down
18 changes: 9 additions & 9 deletions common/buildcraft/BuildCraftFactory.java
Expand Up @@ -166,41 +166,41 @@ public void initialize(FMLPreInitializationEvent evt) {
BuildCraftCore.mainConfiguration.save();

miningWellBlock = new BlockMiningWell(Integer.parseInt(minigWellId.value));
CoreProxy.proxy.registerBlock(miningWellBlock.setBlockName("miningWellBlock"));
CoreProxy.proxy.registerBlock(miningWellBlock.setUnlocalizedName("miningWellBlock"));
CoreProxy.proxy.addName(miningWellBlock, "Mining Well");

plainPipeBlock = new BlockPlainPipe(Integer.parseInt(plainPipeId.value));
CoreProxy.proxy.registerBlock(plainPipeBlock.setBlockName("plainPipeBlock"));
CoreProxy.proxy.registerBlock(plainPipeBlock.setUnlocalizedName("plainPipeBlock"));
CoreProxy.proxy.addName(plainPipeBlock, "Mining Pipe");

autoWorkbenchBlock = new BlockAutoWorkbench(Integer.parseInt(autoWorkbenchId.value));
CoreProxy.proxy.registerBlock(autoWorkbenchBlock.setBlockName("autoWorkbenchBlock"));
CoreProxy.proxy.registerBlock(autoWorkbenchBlock.setUnlocalizedName("autoWorkbenchBlock"));
CoreProxy.proxy.addName(autoWorkbenchBlock, "Automatic Crafting Table");

frameBlock = new BlockFrame(Integer.parseInt(frameId.value));
CoreProxy.proxy.registerBlock(frameBlock.setBlockName("frameBlock"));
CoreProxy.proxy.registerBlock(frameBlock.setUnlocalizedName("frameBlock"));
CoreProxy.proxy.addName(frameBlock, "Frame");

quarryBlock = new BlockQuarry(Integer.parseInt(quarryId.value));
CoreProxy.proxy.registerBlock(quarryBlock.setBlockName("machineBlock"));
CoreProxy.proxy.registerBlock(quarryBlock.setUnlocalizedName("machineBlock"));
CoreProxy.proxy.addName(quarryBlock, "Quarry");

tankBlock = new BlockTank(Integer.parseInt(tankId.value));
CoreProxy.proxy.registerBlock(tankBlock.setBlockName("tankBlock"));
CoreProxy.proxy.registerBlock(tankBlock.setUnlocalizedName("tankBlock"));
CoreProxy.proxy.addName(tankBlock, "Tank");

pumpBlock = new BlockPump(Integer.parseInt(pumpId.value));
CoreProxy.proxy.registerBlock(pumpBlock.setBlockName("pumpBlock"));
CoreProxy.proxy.registerBlock(pumpBlock.setUnlocalizedName("pumpBlock"));
CoreProxy.proxy.addName(pumpBlock, "Pump");

refineryBlock = new BlockRefinery(Integer.parseInt(refineryId.value));
CoreProxy.proxy.registerBlock(refineryBlock.setBlockName("refineryBlock"));
CoreProxy.proxy.registerBlock(refineryBlock.setUnlocalizedName("refineryBlock"));
CoreProxy.proxy.addName(refineryBlock, "Refinery");

hopperDisabled = Boolean.parseBoolean(hopperDisable.value);
if (!hopperDisabled) {
hopperBlock = new BlockHopper(Integer.parseInt(hopperId.value));
CoreProxy.proxy.registerBlock(hopperBlock.setBlockName("blockHopper"));
CoreProxy.proxy.registerBlock(hopperBlock.setUnlocalizedName("blockHopper"));
CoreProxy.proxy.addName(hopperBlock, "Hopper");
}

Expand Down
4 changes: 2 additions & 2 deletions common/buildcraft/BuildCraftSilicon.java
Expand Up @@ -77,7 +77,7 @@ public void initialize(FMLPreInitializationEvent evt) {
BuildCraftCore.mainConfiguration.save();

laserBlock = new BlockLaser(Integer.parseInt(laserId.value));
CoreProxy.proxy.addName(laserBlock.setBlockName("laserBlock"), "Laser");
CoreProxy.proxy.addName(laserBlock.setUnlocalizedName("laserBlock"), "Laser");
CoreProxy.proxy.registerBlock(laserBlock);

assemblyTableBlock = new BlockAssemblyTable(Integer.parseInt(assemblyTableId.value));
Expand All @@ -87,7 +87,7 @@ public void initialize(FMLPreInitializationEvent evt) {
LanguageRegistry.addName(new ItemStack(assemblyTableBlock, 0, 1), "Advanced Crafting Table");

redstoneChipset = new ItemRedstoneChipset(Integer.parseInt(redstoneChipsetId.value));
redstoneChipset.setItemName("redstoneChipset");
redstoneChipset.setUnlocalizedName("redstoneChipset");

}

Expand Down
20 changes: 10 additions & 10 deletions common/buildcraft/BuildCraftTransport.java
Expand Up @@ -198,7 +198,7 @@ private boolean testStrings(String[] excludedBlocks, World world, int i, int j,
int meta = world.getBlockMetadata(i, j, k);

for (String excluded : excludedBlocks) {
if (excluded.equals(block.getBlockName()))
if (excluded.equals(block.getUnlocalizedName()))
return false;

String[] tokens = excluded.split(":");
Expand Down Expand Up @@ -258,7 +258,7 @@ public void preInitialize(FMLPreInitializationEvent evt) {
Property pipeWaterproofId = BuildCraftCore.mainConfiguration.getItem("pipeWaterproof.id", DefaultProps.PIPE_WATERPROOF_ID);

pipeWaterproof = new ItemBuildCraft(Integer.parseInt(pipeWaterproofId.value)).setIconIndex(2 * 16 + 1);
pipeWaterproof.setItemName("pipeWaterproof");
pipeWaterproof.setUnlocalizedName("pipeWaterproof");
pipeWaterproof.setCreativeTab(CreativeTabs.tabMaterials);
LanguageRegistry.addName(pipeWaterproof, "Pipe Waterproof");
genericPipeBlock = new BlockGenericPipe(Integer.parseInt(genericPipeId.value));
Expand Down Expand Up @@ -304,44 +304,44 @@ public void preInitialize(FMLPreInitializationEvent evt) {

Property redPipeWireId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "redPipeWire.id", DefaultProps.RED_PIPE_WIRE);
redPipeWire = new ItemBuildCraft(Integer.parseInt(redPipeWireId.value)).setIconIndex(4 * 16 + 0);
redPipeWire.setItemName("redPipeWire");
redPipeWire.setUnlocalizedName("redPipeWire");
LanguageRegistry.addName(redPipeWire, "Red Pipe Wire");
AssemblyRecipe.assemblyRecipes.add(new AssemblyRecipe(new ItemStack[] { new ItemStack(Item.dyePowder, 1, 1), new ItemStack(Item.redstone, 1),
new ItemStack(Item.ingotIron, 1) }, 500, new ItemStack(redPipeWire, 8)));

Property bluePipeWireId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "bluePipeWire.id", DefaultProps.BLUE_PIPE_WIRE);
bluePipeWire = new ItemBuildCraft(Integer.parseInt(bluePipeWireId.value)).setIconIndex(4 * 16 + 1);
bluePipeWire.setItemName("bluePipeWire");
bluePipeWire.setUnlocalizedName("bluePipeWire");
LanguageRegistry.addName(bluePipeWire, "Blue Pipe Wire");
AssemblyRecipe.assemblyRecipes.add(new AssemblyRecipe(new ItemStack[] { new ItemStack(Item.dyePowder, 1, 4), new ItemStack(Item.redstone, 1),
new ItemStack(Item.ingotIron, 1) }, 500, new ItemStack(bluePipeWire, 8)));

Property greenPipeWireId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "greenPipeWire.id", DefaultProps.GREEN_PIPE_WIRE);
greenPipeWire = new ItemBuildCraft(Integer.parseInt(greenPipeWireId.value)).setIconIndex(4 * 16 + 2);
greenPipeWire.setItemName("greenPipeWire");
greenPipeWire.setUnlocalizedName("greenPipeWire");
LanguageRegistry.addName(greenPipeWire, "Green Pipe Wire");
AssemblyRecipe.assemblyRecipes.add(new AssemblyRecipe(new ItemStack[] { new ItemStack(Item.dyePowder, 1, 2), new ItemStack(Item.redstone, 1),
new ItemStack(Item.ingotIron, 1) }, 500, new ItemStack(greenPipeWire, 8)));

Property yellowPipeWireId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "yellowPipeWire.id", DefaultProps.YELLOW_PIPE_WIRE);
yellowPipeWire = new ItemBuildCraft(Integer.parseInt(yellowPipeWireId.value)).setIconIndex(4 * 16 + 3);
yellowPipeWire.setItemName("yellowPipeWire");
yellowPipeWire.setUnlocalizedName("yellowPipeWire");
LanguageRegistry.addName(yellowPipeWire, "Yellow Pipe Wire");
AssemblyRecipe.assemblyRecipes.add(new AssemblyRecipe(new ItemStack[] { new ItemStack(Item.dyePowder, 1, 11), new ItemStack(Item.redstone, 1),
new ItemStack(Item.ingotIron, 1) }, 500, new ItemStack(yellowPipeWire, 8)));

Property pipeGateId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "pipeGate.id", DefaultProps.GATE_ID);
pipeGate = new ItemGate(Integer.parseInt(pipeGateId.value), 0).setIconIndex(2 * 16 + 3);
pipeGate.setItemName("pipeGate");
pipeGate.setUnlocalizedName("pipeGate");

Property pipeGateAutarchicId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "pipeGateAutarchic.id",
DefaultProps.GATE_AUTARCHIC_ID);
pipeGateAutarchic = new ItemGate(Integer.parseInt(pipeGateAutarchicId.value), 1).setIconIndex(2 * 16 + 3);
pipeGateAutarchic.setItemName("pipeGateAutarchic");
pipeGateAutarchic.setUnlocalizedName("pipeGateAutarchic");

Property pipeFacadeId = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_ITEM, "pipeFacade.id", DefaultProps.PIPE_FACADE_ID);
facadeItem = new ItemFacade(Integer.parseInt(pipeFacadeId.value));
facadeItem.setItemName("pipeFacade");
facadeItem.setUnlocalizedName("pipeFacade");

} finally {
BuildCraftCore.mainConfiguration.save();
Expand Down Expand Up @@ -440,7 +440,7 @@ public static Item createPipe(int defaultID, Class<? extends Pipe> clas, String

int id = prop.getInt(defaultID);
ItemPipe res = BlockGenericPipe.registerPipe(id, clas);
res.setItemName(clas.getSimpleName());
res.setUnlocalizedName(clas.getSimpleName());
LanguageRegistry.addName(res, descr);

// Add appropriate recipe to temporary list
Expand Down
2 changes: 1 addition & 1 deletion common/buildcraft/api/blueprints/BlueprintManager.java
Expand Up @@ -16,7 +16,7 @@ public static ItemSignature getItemSignature(Item item) {
sig.itemClassName = item.getClass().getSimpleName();
}

sig.itemName = item.getItemNameIS(new ItemStack(item));
sig.itemName = item.getUnlocalizedName(new ItemStack(item));

return sig;
}
Expand Down
2 changes: 1 addition & 1 deletion common/buildcraft/api/blueprints/BptBlock.java
Expand Up @@ -206,7 +206,7 @@ public BlockSignature getSignature(Block block) {
}
}

sig.blockName = block.getBlockName();
sig.blockName = block.getUnlocalizedName();
sig.replaceNullWithStar();

return sig;
Expand Down
4 changes: 2 additions & 2 deletions common/buildcraft/builders/BlockArchitect.java
Expand Up @@ -108,8 +108,8 @@ public void breakBlock(World world, int i, int j, int k, int par5, int par6) {
}

@Override
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving) {
super.onBlockPlacedBy(world, i, j, k, entityliving);
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving, ItemStack stack) {
super.onBlockPlacedBy(world, i, j, k, entityliving, stack);

ForgeDirection orientation = Utils.get2dOrientation(new Position(entityliving.posX, entityliving.posY, entityliving.posZ), new Position(i, j, k));

Expand Down
2 changes: 1 addition & 1 deletion common/buildcraft/builders/BlockBlueprintLibrary.java
Expand Up @@ -72,7 +72,7 @@ public int getBlockTextureFromSide(int i) {
}

@Override
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving) {
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving, ItemStack stack) {
if (CoreProxy.proxy.isSimulating(world) && entityliving instanceof EntityPlayer) {
TileBlueprintLibrary tile = (TileBlueprintLibrary) world.getBlockTileEntity(i, j, k);
tile.owner = ((EntityPlayer) entityliving).username;
Expand Down
4 changes: 2 additions & 2 deletions common/buildcraft/builders/BlockBuilder.java
Expand Up @@ -112,8 +112,8 @@ public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer e
}

@Override
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving) {
super.onBlockPlacedBy(world, i, j, k, entityliving);
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving, ItemStack stack) {
super.onBlockPlacedBy(world, i, j, k, entityliving, stack);
ForgeDirection orientation = Utils.get2dOrientation(new Position(entityliving.posX, entityliving.posY, entityliving.posZ), new Position(i, j, k));

world.setBlockMetadataWithNotify(i, j, k, orientation.getOpposite().ordinal());
Expand Down
13 changes: 3 additions & 10 deletions common/buildcraft/builders/gui/GuiBlueprintLibrary.java
Expand Up @@ -110,16 +110,9 @@ protected void drawGuiContainerForegroundLayer(int par1, int par2) {

@Override
protected void drawGuiContainerBackgroundLayer(float f, int x, int y) {
int i = 0;
// if (library.owner.equals(player.username)) {
i = mc.renderEngine.getTexture(DefaultProps.TEXTURE_PATH_GUI + "/library_rw.png");
// } else {
// i = mc.renderEngine
// .getTexture("/net/minecraft/src/buildcraft/builders/gui/library_r.png");
// }

GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.renderEngine.bindTexture(i);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.renderEngine.func_98187_b(DefaultProps.TEXTURE_PATH_GUI + "/library_rw.png");

int j = (width - xSize) / 2;
int k = (height - ySize) / 2;
drawTexturedModalRect(j, k, 0, 0, xSize, ySize);
Expand Down
2 changes: 1 addition & 1 deletion common/buildcraft/core/ItemBlockBuildCraft.java
Expand Up @@ -20,7 +20,7 @@ public int getMetadata(int i) {

@Override
public String getItemDisplayName(ItemStack itemstack) {
return StringUtil.localize(getItemNameIS(itemstack));
return StringUtil.localize(getUnlocalizedName(itemstack));
}

}

0 comments on commit e06e30d

Please sign in to comment.