From 828acc41b11352d97747fc6d114f9b8b6e589392 Mon Sep 17 00:00:00 2001 From: Arthur Uzulin Date: Sat, 26 Oct 2013 10:25:24 +1100 Subject: [PATCH] Fixed advanced drawbridge dupe bug --- .../blocks/logic/AdvancedDrawbridgeLogic.java | 6 +++--- src/tconstruct/common/TContent.java | 15 +++------------ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/tconstruct/blocks/logic/AdvancedDrawbridgeLogic.java b/src/tconstruct/blocks/logic/AdvancedDrawbridgeLogic.java index 5d040284..721e8548 100644 --- a/src/tconstruct/blocks/logic/AdvancedDrawbridgeLogic.java +++ b/src/tconstruct/blocks/logic/AdvancedDrawbridgeLogic.java @@ -265,13 +265,13 @@ public class AdvancedDrawbridgeLogic extends InventoryLogic implements IFacingLo if (getStackInSlot(extension) == null || getStackInSlot(extension).itemID >= 4096 || Block.blocksList[getStackInSlot(extension).itemID] == null) return; Block placeBlock = Block.blocksList[getStackInBufferSlot(extension).itemID]; - placeBlockAt(getStackInBufferSlot(extension), fakePlayer, worldObj, xPos, yPos, zPos, direction, 0, 0, 0, getStackInBufferSlot(extension).getItemDamage(), placeBlock); + placeBlockAt(getStackInSlot(extension), fakePlayer, worldObj, xPos, yPos, zPos, direction, 0, 0, 0, getStackInSlot(extension).getItemDamage(), placeBlock); } else { Block placeBlock = Block.blocksList[blockToItem]; - placeBlockAt(getStackInBufferSlot(extension), fakePlayer, worldObj, xPos, yPos, zPos, direction, 0, 0, 0, getStackInBufferSlot(extension).getItemDamage(), placeBlock); + placeBlockAt(getStackInSlot(extension), fakePlayer, worldObj, xPos, yPos, zPos, direction, 0, 0, 0, getStackInSlot(extension).getItemDamage(), placeBlock); } worldObj.playSoundEffect((double) xPos + 0.5D, (double) yPos + 0.5D, (double) zPos + 0.5D, "tile.piston.out", 0.25F, worldObj.rand.nextFloat() * 0.25F + 0.6F); - decrStackSize(0, 1); + decrStackSize(extension, 1); } else { extension--; working = false; diff --git a/src/tconstruct/common/TContent.java b/src/tconstruct/common/TContent.java index 56b74992..81f9b727 100644 --- a/src/tconstruct/common/TContent.java +++ b/src/tconstruct/common/TContent.java @@ -1,13 +1,5 @@ package tconstruct.common; -import tconstruct.library.client.FluidRenderProperties; - -import tconstruct.library.client.FluidRenderProperties.Applications; - -import net.minecraftforge.oredict.ShapedOreRecipe; - -import net.minecraftforge.common.EnumHelper; - import cpw.mods.fml.common.*; import cpw.mods.fml.common.event.FMLInterModComms; import cpw.mods.fml.common.registry.*; @@ -38,7 +30,9 @@ import tconstruct.items.armor.*; import tconstruct.items.blocks.*; import tconstruct.items.tools.*; import tconstruct.library.TConstructRegistry; -import tconstruct.library.client.TConstructClientRegistry; +import tconstruct.library.armor.EnumArmorPart; +import tconstruct.library.client.*; +import tconstruct.library.client.FluidRenderProperties.Applications; import tconstruct.library.crafting.*; import tconstruct.library.tools.ToolCore; import tconstruct.library.util.IPattern; @@ -1337,9 +1331,6 @@ public class TContent implements IFuelHandler basinCasting.addCastingRecipe(new ItemStack(armorPattern, 1, 3), new FluidStack(moltenAlubrassFluid, TConstruct.ingotLiquidValue * 10), new ItemStack(bootsWood), 50, new FluidRenderProperties(Applications.BASIN.minHeight, 0.65F, Applications.BASIN)); basinCasting.addCastingRecipe(new ItemStack(armorPattern, 1, 3), new FluidStack(moltenGoldFluid, TConstruct.ingotLiquidValue * 10), new ItemStack(bootsWood), 50, new FluidRenderProperties(Applications.BASIN.minHeight, 0.65F, Applications.BASIN)); - //TODO TEST - // basinCasting.addCastingRecipe(new ItemStack(armorTest), new FluidStack(moltenIronFluid, TConstruct.ingotLiquidValue * 24), new ItemStack(armorPattern, 1, 0), false, 100, new FluidRenderProperties(0.5F, 0.575F, 0.15F, 0.85F, 0.15F, 0.85F)); - //Ore Smeltery.addMelting(Block.oreIron, 0, 600, new FluidStack(moltenIronFluid, TConstruct.ingotLiquidValue * 2)); Smeltery.addMelting(Block.oreGold, 0, 400, new FluidStack(moltenGoldFluid, TConstruct.ingotLiquidValue * 2));