mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 14:50:57 +00:00
width & depth must be equal, not smaller
This commit is contained in:
@@ -28,6 +28,6 @@ public class IrisTreeSize {
|
|||||||
* @return true if it matches (fits within width and depth)
|
* @return true if it matches (fits within width and depth)
|
||||||
*/
|
*/
|
||||||
public boolean doesMatch(IrisTreeSize size){
|
public boolean doesMatch(IrisTreeSize size){
|
||||||
return (width <= size.getWidth() && depth <= size.getDepth()) || (depth <= size.getWidth() && width <= size.getDepth());
|
return (width == size.getWidth() && depth == size.getDepth()) || (depth == size.getWidth() && width == size.getDepth());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user