mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
reorientable gearbox because input and output cannot be on the same location
This commit is contained in:
@@ -119,6 +119,10 @@ class Point2i() {
|
||||
}
|
||||
|
||||
override fun hashCode(): Int = XXHash32.hashGeoCoord(x, y)
|
||||
override fun equals(other: Any?) = if (other is Point2i)
|
||||
this.x == other.x && this.y == other.y
|
||||
else
|
||||
false
|
||||
|
||||
override fun toString() = "Point2i($x, $y)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user