Skip to content

Commit e1bbdfe

Browse files
committed
[cleanup] Removed accidental override of equals and hash in SoundDefinition
1 parent 690e4ff commit e1bbdfe

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/main/java/cam72cam/immersiverailroading/registry/EntityRollingStockDefinition.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -148,27 +148,6 @@ public static SoundDefinition getOrDefault(DataBlock block, String key) {
148148
}
149149
return null;
150150
}
151-
152-
@Override
153-
public boolean equals(Object obj) {
154-
if (this == obj) return true;
155-
if (obj == null || getClass() != obj.getClass()) return false;
156-
SoundDefinition that = (SoundDefinition) obj;
157-
158-
return Objects.equals(start, that.start) &&
159-
Objects.equals(main, that.main) &&
160-
looping == that.looping &&
161-
Objects.equals(stop, that.stop) &&
162-
Objects.equals(distance, that.distance) &&
163-
Objects.equals(volume, that.volume);
164-
}
165-
166-
@Override
167-
public int hashCode() {
168-
return Objects.hash(start, main, looping, stop, distance, volume);
169-
}
170-
171-
172151
}
173152

174153
public static class AnimationDefinition {

0 commit comments

Comments
 (0)