Skip to content

Commit f0ca403

Browse files
committed
bump version
1 parent 8da04c3 commit f0ca403

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ buildscript {
2929
apply plugin: 'net.minecraftforge.gradle.forge'
3030
apply plugin: 'idea'
3131

32-
version = "2.6.0-r"
32+
version = "2.6.1-r"
3333
group = "ae2fc"
3434
archivesBaseName = "Fluid Craft for AE2"
3535

src/main/java/com/glodblock/github/FluidCraft.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class FluidCraft {
1515

1616
public static final String MODID = "ae2fc";
17-
public static final String VERSION = "2.6.0-r";
17+
public static final String VERSION = "2.6.1-r";
1818
public static final boolean beta = false;
1919

2020
@Mod.Instance(MODID)

src/main/java/com/glodblock/github/coremod/CoreModHooks.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ public static void readExtraNBTInterface(DualityInterface dual, NBTTagCompound n
125125

126126
public static ItemStack removeFluidPackets(InventoryCrafting inv, int index) {
127127
ItemStack stack = inv.getStackInSlot(index);
128-
if (stack != ItemStack.EMPTY && stack.getItem() == FCItems.FLUID_PACKET) {
128+
if (!stack.isEmpty() && stack.getItem() == FCItems.FLUID_PACKET) {
129129
FluidStack fluid = FakeItemRegister.getStack(stack);
130130
return FakeFluids.packFluid2Drops(fluid);
131131
}
132-
if (ModAndClassUtil.GAS && stack != ItemStack.EMPTY && stack.getItem() == FCGasItems.GAS_PACKET) {
132+
if (ModAndClassUtil.GAS && !stack.isEmpty() && stack.getItem() == FCGasItems.GAS_PACKET) {
133133
GasStack gas = FakeItemRegister.getStack(stack);
134134
return FakeGases.packGas2Drops(gas);
135135
}
@@ -141,8 +141,7 @@ public static ItemStack removeFluidPackets(InventoryCrafting inv, int index) {
141141
public static long getCraftingByteCost(IAEItemStack stack) {
142142
if (stack.getItem() == FCItems.FLUID_DROP) {
143143
return (long) Math.ceil(stack.getStackSize() / 1000D);
144-
}
145-
if (ModAndClassUtil.GAS && stack.getItem() == FCGasItems.GAS_DROP) {
144+
} else if (ModAndClassUtil.GAS && stack.getItem() == FCGasItems.GAS_DROP) {
146145
return (long) Math.ceil(stack.getStackSize() / 4000D);
147146
}
148147
return stack.getStackSize();
@@ -151,8 +150,7 @@ public static long getCraftingByteCost(IAEItemStack stack) {
151150
public static long getCraftingByteCost(long originBytes, long missingBytes, IAEItemStack stack) {
152151
if (stack != null && stack.getItem() == FCItems.FLUID_DROP) {
153152
return (long) Math.ceil(missingBytes / 1000D) + originBytes;
154-
}
155-
if (ModAndClassUtil.GAS && stack != null && stack.getItem() == FCGasItems.GAS_DROP) {
153+
} else if (ModAndClassUtil.GAS && stack != null && stack.getItem() == FCGasItems.GAS_DROP) {
156154
return (long) Math.ceil(missingBytes / 4000D) + originBytes;
157155
}
158156
return missingBytes + originBytes;
@@ -251,8 +249,7 @@ public static long getFluidSize(IAEItemStack aeStack) {
251249
if (aeStack.getDefinition() != null && !aeStack.getDefinition().isEmpty()) {
252250
if (aeStack.getDefinition().getItem() == FCItems.FLUID_DROP) {
253251
return (long) Math.max(aeStack.getStackSize() / 1000D, 1);
254-
}
255-
if (ModAndClassUtil.GAS && aeStack.getDefinition().getItem() == FCGasItems.GAS_DROP) {
252+
} else if (ModAndClassUtil.GAS && aeStack.getDefinition().getItem() == FCGasItems.GAS_DROP) {
256253
return (long) Math.max(aeStack.getStackSize() / 4000D, 1);
257254
}
258255
}

src/main/java/com/glodblock/github/util/ModAndClassUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void init() {
3232
OC = true;
3333
}
3434

35-
if (Loader.isModLoaded("mekanism") && Loader.isModLoaded("mekeng")) {
35+
if (Loader.isModLoaded("mekeng")) {
3636
GAS = true;
3737
}
3838
}

0 commit comments

Comments
 (0)