Revert "network lock equality, for the future"

This reverts commit 58558781
This commit is contained in:
Ellpeck 2020-05-09 01:21:16 +02:00
parent 58558781eb
commit 88544368eb

View file

@ -1,7 +1,5 @@
package de.ellpeck.prettypipes.network;
import java.util.Objects;
public class NetworkLock {
public final NetworkLocation location;
@ -13,18 +11,4 @@ public class NetworkLock {
this.slot = slot;
this.amount = amount;
}
@Override
public boolean equals(Object o) {
if (o instanceof NetworkLock) {
NetworkLock that = (NetworkLock) o;
return this.slot == that.slot && this.amount == that.amount && this.location.equals(that.location);
}
return false;
}
@Override
public int hashCode() {
return Objects.hash(this.location, this.slot, this.amount);
}
}