Skip to content

Commit

Permalink
adde hash code
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Nov 23, 2023
1 parent b8f59f5 commit 659112e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true

version = 10.0.0
version = 10.0.1
maven_group = net.ludocrypt
archives_base_name = limlib
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.List;
import java.util.Map;
import java.util.Objects;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
Expand Down Expand Up @@ -292,6 +293,11 @@ public Vec2i add(int x, int y) {
return new Vec2i(this.x + x, this.y + y);
}

@Override
public int hashCode() {
return Objects.hash(x, y);
}

@Override
public boolean equals(Object obj) {

Expand Down

0 comments on commit 659112e

Please sign in to comment.