Closed nateroe closed 5 years ago
I can reproduce this with small height and width, and there's an issue reproduction test in https://github.com/SquidPony/SquidLib/blob/master/squidlib-util/src/test/java/squidpony/issues/Issue202.java . I believe this is fixed as of the latest commit, 2ff1896877
. The bug was related to very small map widths, and GreasedRegion inconsistently using the width of a tile when it should have used the smaller of the tile width and map width. It's probably better to depend on a specific commit than -SNAPSHOT, because IDEs can hang on to part of an old SNAPSHOT version in bits and pieces (they're all the same version, "-SNAPSHOT", so comparison is tricky), and if that happens builds won't make any sense.
I'll close this now because every case where the problematic code was found has now been updated.
Generating a small dungeon
Always throws this exception: