lol this is proper hashing for blockpos, no clue what last commit is
This commit is contained in:
parent
3b7581a03a
commit
c6bf20b9b6
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class BlockPos:
|
|||
return repr(self)
|
||||
|
||||
def __hash__(self) -> int:
|
||||
return hash(repr(self)) # TODO VERY cheap hack but Cantor pairing or hash combining is not something I want to get into now
|
||||
return hash(self.to_tuple())
|
||||
|
||||
@classmethod
|
||||
def from_tuple(cls, t:Tuple[float, float, float]):
|
||||
|
|
Loading…
Reference in a new issue