Forgot to check for insert-only in external fluid storages

This commit is contained in:
Raoul Van den Berge
2016-11-30 14:07:40 +01:00
parent 3cf6c8b791
commit c1dbcd029c
2 changed files with 5 additions and 1 deletions

View File

@@ -86,6 +86,10 @@ public class FluidStorageExternal implements IFluidStorage {
@Override
public int getCacheDelta(int storedPreInsertion, int size, @Nullable FluidStack remainder) {
if (getAccessType() == AccessType.INSERT) {
return 0;
}
return remainder == null ? size : (size - remainder.amount);
}

View File

@@ -15,7 +15,7 @@ public abstract class ItemStorageExternal implements IItemStorage {
public abstract int getCapacity();
public void detectChanges(INetworkMaster network) {
// if we are insert-only, we don't care about sending changes
// If we are insert only, we don't care about sending changes
if (getAccessType() == AccessType.INSERT) {
return;
}