X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new%2Fplomrogue%2Fmapping.py;h=e21def88a96dbecfda2b3196e5c7e62c68d2cb7c;hb=599f48bd1d9270cf154e885cf276adb05727507a;hp=aa76b61d1123dee7c7625f03302a8e16bc399300;hpb=e530d9faf68b4057322f5cc61aa0e3b76f8db3f6;p=plomrogue2-experiments diff --git a/new/plomrogue/mapping.py b/new/plomrogue/mapping.py index aa76b61..e21def8 100644 --- a/new/plomrogue/mapping.py +++ b/new/plomrogue/mapping.py @@ -62,6 +62,7 @@ class Map(MapBase): def get_neighbors(self, pos): neighbors = {} + pos = tuple(pos) if not hasattr(self, 'neighbors_to'): self.neighbors_to = {} if pos in self.neighbors_to: