aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kekztech/MultiFluidHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kekztech/MultiFluidHandler.java')
-rw-r--r--src/main/java/kekztech/MultiFluidHandler.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/kekztech/MultiFluidHandler.java b/src/main/java/kekztech/MultiFluidHandler.java
index f1a527b2c0..1d8f4c2fea 100644
--- a/src/main/java/kekztech/MultiFluidHandler.java
+++ b/src/main/java/kekztech/MultiFluidHandler.java
@@ -70,14 +70,15 @@ public class MultiFluidHandler {
public int getCapacity() {
return capacityPerFluid;
}
-
+
+ // TODO return deep copy instead
public List<FluidStack> getFluids(){
return (!locked) ? fluids : new ArrayList<>();
}
public FluidStack getFluid(int slot) {
return (!locked && fluids.size() > 0 && slot >= 0 && slot < MAX_DISTINCT_FLUIDS)
- ? fluids.get(slot) : null;
+ ? fluids.get(slot).copy() : null;
}
public NBTTagCompound saveNBTData(NBTTagCompound nbt) {