Don't warn about small global regions.

Closes #1567.
This commit is contained in:
wizjany 2020-05-01 19:39:59 -04:00
parent 60590acfe3
commit 0a735e0146

View File

@ -340,6 +340,9 @@ protected static void warnAboutSaveFailures(Actor sender) {
* @param region the region
*/
protected static void warnAboutDimensions(Actor sender, ProtectedRegion region) {
if (region instanceof GlobalProtectedRegion) {
return;
}
int height = region.getMaximumPoint().getBlockY() - region.getMinimumPoint().getBlockY();
if (height <= 2) {
sender.printDebug("(Warning: The height of the region was " + (height + 1) + " block(s).)");