aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/tileentities
diff options
context:
space:
mode:
authorAlkalus <Draknyte1@hotmail.com>2020-05-31 20:10:14 +0100
committerAlkalus <Draknyte1@hotmail.com>2020-05-31 20:10:14 +0100
commitcf125cd1dff982663ec687cd0e2c06662df355a5 (patch)
tree749323be011a7fd58aaa6c80c8a8ce351746dab7 /src/Java/gtPlusPlus/core/tileentities
parentee9e7f7fa07b547a0d9591392712ef4d3580a3d1 (diff)
downloadGT5-Unofficial-cf125cd1dff982663ec687cd0e2c06662df355a5.tar.gz
GT5-Unofficial-cf125cd1dff982663ec687cd0e2c06662df355a5.tar.bz2
GT5-Unofficial-cf125cd1dff982663ec687cd0e2c06662df355a5.zip
+ Added recipes for Laurenium and Botmium casings.
- Removed VFCs ability to handle flasks with fluid in them. - Disabled Thaumic Tinkerer Hazmat additions. - Disabled Item Overflow Covers. % Made Green Rocket Fuel more expensive. % Made Purple Rocket Fuel use less copper, give more output. $ Fixed unloacl name of GT++ Super Chests, to prevent GT's Language Manager re-using the Localised String. $ Fixed handling of large recipes in GT_NEI_multiCentriElectroFreezer. $ Fixed Automation of Pollution Scrubbers.
Diffstat (limited to 'src/Java/gtPlusPlus/core/tileentities')
-rw-r--r--src/Java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java
index 6ced7ac7f7..e20a538ea7 100644
--- a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java
+++ b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java
@@ -117,7 +117,21 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
return false;
}
+ boolean aAllowFluid = false;
+ boolean aHasFluid = false;
+
ItemStack[] aInputs = this.getInventory().getInventory().clone();
+
+ for (ItemStack aStack : aInputs) {
+ if (VolumetricFlaskHelper.getFlaskFluid(aStack) != null) {
+ aHasFluid = true;
+ }
+ }
+
+ if (aHasFluid && !aAllowFluid) {
+ return false;
+ }
+
//Check if there is output in slot.
Boolean hasOutput = false;
if (aInputs[Container_VolumetricFlaskSetter.SLOT_OUTPUT] != null) {
@@ -141,7 +155,8 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
boolean doAdd = false;
ItemStack g = this.getStackInSlot(e);
- FluidStack aInputFluidStack = VolumetricFlaskHelper.getFlaskFluid(g);
+ //FluidStack aInputFluidStack = VolumetricFlaskHelper.getFlaskFluid(g);
+ FluidStack aInputFluidStack = null;
int aSize = 0;
ItemStack aInputStack = null;
int aTypeInSlot = getFlaskType(g);
@@ -154,7 +169,8 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
// Existing Output
else {
ItemStack f = this.getStackInSlot(8);
- FluidStack aFluidInCheckedSlot = VolumetricFlaskHelper.getFlaskFluid(f);
+ //FluidStack aFluidInCheckedSlot = VolumetricFlaskHelper.getFlaskFluid(f);
+ FluidStack aFluidInCheckedSlot = null;
int aTypeInCheckedSlot = getFlaskType(f);
// Check that the Circuit in the Output slot is not null and the same type as the circuit input.
if (aTypeInCheckedSlot > 0 && (aTypeInSlot == aTypeInCheckedSlot) && f != null) {
@@ -172,9 +188,9 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
// Check Circuit Type
ItemStack aOutput;
FluidStack aOutputFluid = null;
- if (!VolumetricFlaskHelper.isFlaskEmpty(g)) {
+ /*if (!VolumetricFlaskHelper.isFlaskEmpty(g)) {
aOutputFluid = aInputFluidStack.copy();
- }
+ }*/
if (aTypeInSlot == 1) {
aOutput = VolumetricFlaskHelper.getVolumetricFlask(1);
}
@@ -195,7 +211,7 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
if (aOutputFluid.amount > aCapacity) {
aOutputFluid.amount = aCapacity;
}
- VolumetricFlaskHelper.setFluid(aOutput, aOutputFluid);
+ //VolumetricFlaskHelper.setFluid(aOutput, aOutputFluid);
}
this.setInventorySlotContents(e, aInputStack);
this.setInventorySlotContents(Container_VolumetricFlaskSetter.SLOT_OUTPUT, aOutput);