lib fix: Disable height checking for pool direction
This commit is contained in:
parent
fcbfa6e544
commit
26526bb249
|
@ -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)");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue