width & depth must be equal, not smaller

This commit is contained in:
CocoTheOwner 2021-07-25 23:17:19 +02:00
parent 7fb87ad67f
commit 48f57068d8

View File

@ -28,6 +28,6 @@ public class IrisTreeSize {
* @return true if it matches (fits within width and depth)
*/
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());
}
}