Skip to content

Commit 659112e

Browse files
committed
adde hash code
1 parent b8f59f5 commit 659112e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
org.gradle.jvmargs = -Xmx1G
22
org.gradle.parallel = true
33

4-
version = 10.0.0
4+
version = 10.0.1
55
maven_group = net.ludocrypt
66
archives_base_name = limlib

src/main/java/net/ludocrypt/limlib/api/world/maze/MazeComponent.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.List;
44
import java.util.Map;
5+
import java.util.Objects;
56

67
import com.google.common.collect.Lists;
78
import com.google.common.collect.Maps;
@@ -292,6 +293,11 @@ public Vec2i add(int x, int y) {
292293
return new Vec2i(this.x + x, this.y + y);
293294
}
294295

296+
@Override
297+
public int hashCode() {
298+
return Objects.hash(x, y);
299+
}
300+
295301
@Override
296302
public boolean equals(Object obj) {
297303

0 commit comments

Comments
 (0)