diff --git a/src/main/java/mekanism/client/nei/PRCRecipeHandler.java b/src/main/java/mekanism/client/nei/PRCRecipeHandler.java index eee82f2cc..2bb57b551 100644 --- a/src/main/java/mekanism/client/nei/PRCRecipeHandler.java +++ b/src/main/java/mekanism/client/nei/PRCRecipeHandler.java @@ -263,15 +263,15 @@ public class PRCRecipeHandler extends BaseRecipeHandler int xAxis = point.x-(Integer)MekanismUtils.getPrivateValue(gui, GuiContainer.class, ObfuscatedNames.GuiContainer_guiLeft)-offset.x; int yAxis = point.y-(Integer)MekanismUtils.getPrivateValue(gui, GuiContainer.class, ObfuscatedNames.GuiContainer_guiTop)-offset.y; - if(xAxis >= 6 && xAxis <= 22 && yAxis >= 11+13 && yAxis <= 69+13) + if(xAxis >= 6 && xAxis <= 22 && yAxis >= 11-10 && yAxis <= 69-10) { currenttip.add(((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.reactants.getFluid().getFluid().getLocalizedName()); } - else if(xAxis >= 29 && xAxis <= 45 && yAxis >= 11+13 && yAxis <= 69+13) + else if(xAxis >= 29 && xAxis <= 45 && yAxis >= 11-10 && yAxis <= 69-10) { currenttip.add(((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.reactants.getGas().getGas().getLocalizedName()); } - else if(xAxis >= 141 && xAxis <= 157 && yAxis >= 41+13 && yAxis <= 69+13) + else if(xAxis >= 141 && xAxis <= 157 && yAxis >= 41-10 && yAxis <= 69-10) { currenttip.add(((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.products.getGasOutput().getGas().getLocalizedName()); } @@ -291,15 +291,15 @@ public class PRCRecipeHandler extends BaseRecipeHandler GasStack gas = null; FluidStack fluid = null; - if(xAxis >= 6 && xAxis <= 22 && yAxis >= 11+13 && yAxis <= 69+13) + if(xAxis >= 6 && xAxis <= 22 && yAxis >= 11-10 && yAxis <= 69-10) { fluid = ((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.reactants.getFluid(); } - else if(xAxis >= 29 && xAxis <= 45 && yAxis >= 11+13 && yAxis <= 69+13) + else if(xAxis >= 29 && xAxis <= 45 && yAxis >= 11-10 && yAxis <= 69-10) { gas = ((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.reactants.getGas(); } - else if(xAxis >= 141 && xAxis <= 157 && yAxis >= 41+13 && yAxis <= 69+13) + else if(xAxis >= 141 && xAxis <= 157 && yAxis >= 41-10 && yAxis <= 69-10) { gas = ((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.products.getGasOutput(); } @@ -354,15 +354,15 @@ public class PRCRecipeHandler extends BaseRecipeHandler GasStack gas = null; FluidStack fluid = null; - if(xAxis >= 6 && xAxis <= 22 && yAxis >= 11+13 && yAxis <= 69+13) + if(xAxis >= 6 && xAxis <= 22 && yAxis >= 11-10 && yAxis <= 69-10) { fluid = ((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.reactants.getFluid(); } - else if(xAxis >= 29 && xAxis <= 45 && yAxis >= 11+13 && yAxis <= 69+13) + else if(xAxis >= 29 && xAxis <= 45 && yAxis >= 11-10 && yAxis <= 69-10) { gas = ((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.reactants.getGas(); } - else if(xAxis >= 141 && xAxis <= 157 && yAxis >= 41+13 && yAxis <= 69+13) + else if(xAxis >= 141 && xAxis <= 157 && yAxis >= 41-10 && yAxis <= 69-10) { gas = ((CachedIORecipe)arecipes.get(recipe)).pressurizedRecipe.products.getGasOutput(); } diff --git a/src/main/java/mekanism/common/OreDictCache.java b/src/main/java/mekanism/common/OreDictCache.java index 236c7e1eb..4f20f7771 100644 --- a/src/main/java/mekanism/common/OreDictCache.java +++ b/src/main/java/mekanism/common/OreDictCache.java @@ -20,7 +20,7 @@ public final class OreDictCache public static List getOreDictName(ItemStack check) { - if (check == null || check.getItem() == null) + if(check == null || check.getItem() == null) { return new ArrayList(); } diff --git a/src/main/java/mekanism/common/item/ItemBlockMachine.java b/src/main/java/mekanism/common/item/ItemBlockMachine.java index 66e13a298..2c2ff46f4 100644 --- a/src/main/java/mekanism/common/item/ItemBlockMachine.java +++ b/src/main/java/mekanism/common/item/ItemBlockMachine.java @@ -232,13 +232,6 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec } } } - else if(type == MachineType.PORTABLE_TANK) - { - if(getBucketMode(stack)) - { - return false; - } - } if(place && super.placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata)) { diff --git a/src/main/java/mekanism/common/tile/TileEntityElectricPump.java b/src/main/java/mekanism/common/tile/TileEntityElectricPump.java index ba0775a29..80518eaac 100644 --- a/src/main/java/mekanism/common/tile/TileEntityElectricPump.java +++ b/src/main/java/mekanism/common/tile/TileEntityElectricPump.java @@ -104,7 +104,7 @@ public class TileEntityElectricPump extends TileEntityElectricBlock implements I if(!worldObj.isRemote && worldObj.getWorldTime() % 20 == 0) { - if(getEnergy() >= Mekanism.electricPumpUsage && (fluidTank.getFluid() == null || fluidTank.getFluid().amount+FluidContainerRegistry.BUCKET_VOLUME <= 10000)) + if(getEnergy() >= Mekanism.electricPumpUsage && (fluidTank.getFluid() == null || fluidTank.getFluid().amount+FluidContainerRegistry.BUCKET_VOLUME <= fluidTank.getCapacity())) { if(suck(true)) {