Reformat
This commit is contained in:
@@ -43,7 +43,7 @@ public interface IComparer {
|
||||
default boolean isEqualNoQuantity(ItemStack left, ItemStack right) {
|
||||
return isEqual(left, right, COMPARE_NBT | COMPARE_DAMAGE);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Compares two stacks by the given flags.
|
||||
*
|
||||
|
||||
@@ -50,7 +50,7 @@ public class TileFluidStorage extends TileNode implements IFluidStorageProvider,
|
||||
if (!IFilterable.canTakeFluids(filters, mode, compare, stack)) {
|
||||
return RSUtils.copyStackWithSize(stack, size);
|
||||
}
|
||||
|
||||
|
||||
FluidStack result = super.insertFluid(stack, size, simulate);
|
||||
if (voidExcess && result != null) {
|
||||
// Simulate should not matter as the fluids are voided anyway
|
||||
|
||||
@@ -35,7 +35,7 @@ public class TileInterface extends TileNode implements IComparable {
|
||||
return stack;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
private ItemHandlerUpgrade upgrades = new ItemHandlerUpgrade(4, this, ItemUpgrade.TYPE_SPEED, ItemUpgrade.TYPE_STACK, ItemUpgrade.TYPE_CRAFTING);
|
||||
|
||||
private int compare = IComparer.COMPARE_NBT | IComparer.COMPARE_DAMAGE;
|
||||
|
||||
@@ -155,7 +155,7 @@ public class TileStorage extends TileNode implements IItemStorageProvider, IStor
|
||||
mode = tag.getInteger(NBT_MODE);
|
||||
}
|
||||
|
||||
if(tag.hasKey(NBT_VOID_EXCESS)) {
|
||||
if (tag.hasKey(NBT_VOID_EXCESS)) {
|
||||
voidExcess = tag.getBoolean(NBT_VOID_EXCESS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user