lib fix: Disable height checking for pool direction

This commit is contained in:
Emilia Allison 2025-01-12 12:03:28 -05:00
parent fcbfa6e544
commit 26526bb249
Signed by: emilia
GPG Key ID: 05D5D1107E5100A1
1 changed files with 2 additions and 2 deletions

View File

@ -457,10 +457,10 @@ impl TransferRegion {
}
// Sufficient to check if the corners are in-bounds
let source_max = self.source_plate.size();
if s1.row > source_max.0 || s2.row > source_max.0 {
if (s1.row > source_max.0 || s2.row > source_max.0) && il_dest.0 != 0 {
return Err("Source region is out-of-bounds! (Too tall)");
}
if s1.col > source_max.1 || s2.col > source_max.1 {
if (s1.col > source_max.1 || s2.col > source_max.1) && il_dest.1 != 0 {
// log::debug!("s1.1: {}, max.1: {}", s1.1, source_max.1);
return Err("Source region is out-of-bounds! (Too wide)");
}