Use ItemHandlerHelper some more

This commit is contained in:
Raoul Van den Berge
2016-05-22 01:12:04 +02:00
parent 10dcfc615e
commit 68021bd6f5
15 changed files with 44 additions and 61 deletions

View File

@@ -44,13 +44,16 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
public int energyUsage;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
public boolean equals(Object other) {
if (this == other) {
return true;
}
ClientSideMachine other = (ClientSideMachine) o;
if (!(other instanceof ClientSideMachine)) {
return false;
}
return energyUsage == other.energyUsage && RefinedStorageUtils.compareStack(stack, other.stack);
return energyUsage == ((ClientSideMachine) other).energyUsage && RefinedStorageUtils.compareStack(stack, ((ClientSideMachine) other).stack);
}
@Override