diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java index 84944153..f0297ce0 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java @@ -456,7 +456,7 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item implements if (isItemStackUsable(aStack)) { IToolStats toolStats = getToolStats(aStack); if(toolStats != null && toolStats.isMinableBlock(state)) { - if(getHarvestLevel(aStack, null) > state.getBlock().getHarvestLevel(state)) { + if(getHarvestLevel(aStack, null) >= state.getBlock().getHarvestLevel(state)) { float toolSpeed = toolStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed; return Math.max(defSpeed, toolSpeed); } diff --git a/src/main/java/gregtech/common/render/RenderBlocks.java b/src/main/java/gregtech/common/render/RenderBlocks.java index ed8fcc8c..016f45be 100644 --- a/src/main/java/gregtech/common/render/RenderBlocks.java +++ b/src/main/java/gregtech/common/render/RenderBlocks.java @@ -102,7 +102,9 @@ public class RenderBlocks implements ICCBlockRenderer { public static void renderFace(CCRenderState state, EnumFacing side, IVertexOperation... ops) { - face.loadCuboidFace(bounds, side.ordinal()); + if (bounds != null) { + face.loadCuboidFace(bounds, side.ordinal()); + } state.setPipeline(face, 0, face.verts.length, ops); state.render(); } diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java index 6df60108..5b6ce978 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler.java @@ -186,7 +186,7 @@ public abstract class GT_MetaTileEntity_Boiler extends GT_MetaTileEntity_BasicTa } if (getFluidAmount() != 0) { for (EnumFacing side : EnumFacing.VALUES) { - if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing()) { + if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing() && side != EnumFacing.DOWN) { int drain = GT_Utility.fillFluidTank( aBaseMetaTileEntity.getWorldObj(), aBaseMetaTileEntity.getWorldPos(), side, diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java index 6019eee5..fcf410f2 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Bronze.java @@ -75,7 +75,7 @@ public class GT_MetaTileEntity_Boiler_Bronze extends GT_MetaTileEntity_Boiler { } if (getFluidAmount() != 0) { for (EnumFacing side : EnumFacing.VALUES) { - if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing()) { + if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing() && side != EnumFacing.DOWN) { int drain = GT_Utility.fillFluidTank( aBaseMetaTileEntity.getWorldObj(), aBaseMetaTileEntity.getWorldPos(), side, diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java index f36eb6c3..48d1055e 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java @@ -74,7 +74,7 @@ public class GT_MetaTileEntity_Boiler_Lava extends GT_MetaTileEntity_Boiler { } if (getFluidAmount() != 0) { for (EnumFacing side : EnumFacing.VALUES) { - if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing()) { + if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing() && side != EnumFacing.DOWN) { int drain = GT_Utility.fillFluidTank( aBaseMetaTileEntity.getWorldObj(), aBaseMetaTileEntity.getWorldPos(), side, diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java index 54801f6e..4399aa74 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java @@ -94,7 +94,7 @@ public class GT_MetaTileEntity_Boiler_Solar extends GT_MetaTileEntity_Boiler { } if (getFluidAmount() != 0) { for (EnumFacing side : EnumFacing.VALUES) { - if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing()) { + if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing() && side != EnumFacing.DOWN) { int drain = GT_Utility.fillFluidTank( aBaseMetaTileEntity.getWorldObj(), aBaseMetaTileEntity.getWorldPos(), side, diff --git a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java index 37f61891..f02100fc 100644 --- a/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java +++ b/src/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java @@ -78,7 +78,7 @@ public class GT_MetaTileEntity_Boiler_Steel extends GT_MetaTileEntity_Boiler { } if (getFluidAmount() != 0) { for (EnumFacing side : EnumFacing.VALUES) { - if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing()) { + if (side.getIndex() != aBaseMetaTileEntity.getFrontFacing() && side != EnumFacing.DOWN) { int drain = GT_Utility.fillFluidTank( aBaseMetaTileEntity.getWorldObj(), aBaseMetaTileEntity.getWorldPos(), side, diff --git a/src/main/java/gregtech/common/tools/GT_Tool.java b/src/main/java/gregtech/common/tools/GT_Tool.java index eb64a7b0..e6f153f7 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool.java +++ b/src/main/java/gregtech/common/tools/GT_Tool.java @@ -34,7 +34,7 @@ public abstract class GT_Tool protected static boolean isStateEqual(IBlockState state1, IBlockState state2) { if(state1.getBlock() != state2.getBlock()) return false; - if(!state1.getProperties().equals(state2)) + if(!state1.getProperties().equals(state2.getProperties())) return false; return true; } diff --git a/src/main/java/gregtech/jei/JEIGregtechRecipe.java b/src/main/java/gregtech/jei/JEIGregtechRecipe.java index 0e275509..ac87feba 100644 --- a/src/main/java/gregtech/jei/JEIGregtechRecipe.java +++ b/src/main/java/gregtech/jei/JEIGregtechRecipe.java @@ -576,7 +576,7 @@ public class JEIGregtechRecipe implements IRecipeWrapper { mInputs.addTooltipCallback((slotIndex, input, ingredient, tooltip) -> { int slotType = slotIndex / 1000; - int inputIndex = slotType % 1000; + int inputIndex = slotIndex % 1000; switch (slotType) { case 1: //it's output diff --git a/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java b/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java index 75b75496..ed11a2d3 100644 --- a/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java +++ b/src/main/java/gregtech/loaders/postload/GT_MachineRecipeLoader.java @@ -261,7 +261,7 @@ public class GT_MachineRecipeLoader implements Runnable { GT_Values.RA.addChemicalBathRecipe(ItemList.Food_Raw_Fries.get(1), Materials.FryingOilHot.getFluid(10L), ItemList.Food_Fries.get(1), GT_Values.NI, GT_Values.NI, null, 16, 4); GT_Values.RA.addChemicalBathRecipe(GT_ModHandler.getIC2Item(BlockName.te, TeBlock.itnt, 1), Materials.Glue.getFluid(10L), GT_ModHandler.getIC2Item(ItemName.dynamite_sticky, 1), GT_Values.NI, GT_Values.NI, null, 16, 4); - GT_Values.RA.addChemicalRecipe(new ItemStack(Items.PAPER,1), new ItemStack(Items.STRING,1), Materials.Glyceryl.getFluid(150), GT_Values.NF, GT_ModHandler.getIC2Item(BlockName.te, TeBlock.itnt, 1), 160, 4); + GT_Values.RA.addChemicalRecipe(new ItemStack(Items.PAPER,1), new ItemStack(Items.STRING,1), Materials.Glyceryl.getFluid(150), GT_Values.NF, GT_ModHandler.getIC2Item(ItemName.dynamite, 1), 160, 4); GT_Values.RA.addChemicalBathRecipe(GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Steel, 1), Materials.Concrete.getMolten(144L), GT_ModHandler.getIC2Item(BlockName.resource, ResourceBlock.reinforced_stone, 1), GT_Values.NI, GT_Values.NI, null, 200, 4); GT_Values.RA.addChemicalBathRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1), Materials.Water.getFluid(125L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.HydratedCoal, 1), GT_Values.NI, GT_Values.NI, null, 12, 4); GT_Values.RA.addChemicalBathRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1), Materials.Water.getFluid(100L), new ItemStack(Items.PAPER, 1, 0), GT_Values.NI, GT_Values.NI, null, 200, 4);