Fix of width/height calculation of the fabrics geometry, plus some tiny fixes
To calculate the fabrics width/height, the bottom right tile was used - tile generation starts at (0, 0), thus the location and dimensions of this tile was used to determine the overall width and height of the fabric by using its location and width/height. However, the tile can be a NULL-Tile, rendering it useless for determining the dimensions of the fabric. This fix should resolve the issue.
Fix of width/height calculation of the fabrics geometry, plus some tiny fixes
To calculate the fabrics width/height, the bottom right tile was used - tile generation starts at (0, 0), thus the location and dimensions of this tile was used to determine the overall width and height of the fabric by using its location and width/height. However, the tile can be a NULL-Tile, rendering it useless for determining the dimensions of the fabric. This fix should resolve the issue.