This commit is contained in:
Anuken
2020-10-02 23:15:52 -04:00
parent 99bc330ce4
commit 7a307bbe9c
8 changed files with 23 additions and 18 deletions

View File

@@ -45,8 +45,8 @@ public class Tiles implements Iterable<Tile>{
}
/** @return a tile at coordinates, or null if out of bounds */
public @Nullable
Tile get(int x, int y){
@Nullable
public Tile get(int x, int y){
return (x < 0 || x >= width || y < 0 || y >= height) ? null : array[y*width + x];
}