Forgot to check for insert-only in external fluid storages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user