This commit is contained in:
Raoul Van den Berge
2016-10-10 23:25:09 +02:00
parent 9ec43fe71b
commit b8fbbebaf9
4 changed files with 4 additions and 4 deletions

View File

@@ -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.
*

View File

@@ -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

View File

@@ -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;

View File

@@ -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);
}
}