lol this is proper hashing for blockpos, no clue what last commit is

This commit is contained in:
əlemi 2021-12-12 02:18:58 +01:00
parent 3b7581a03a
commit c6bf20b9b6

View file

@ -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]):