From 48f57068d8bb69bf9d177c7243ba3581f5667656 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Sun, 25 Jul 2021 23:17:19 +0200 Subject: [PATCH] width & depth must be equal, not smaller --- src/main/java/com/volmit/iris/engine/object/IrisTreeSize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/volmit/iris/engine/object/IrisTreeSize.java b/src/main/java/com/volmit/iris/engine/object/IrisTreeSize.java index 9dccad345..a92dc375d 100644 --- a/src/main/java/com/volmit/iris/engine/object/IrisTreeSize.java +++ b/src/main/java/com/volmit/iris/engine/object/IrisTreeSize.java @@ -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()); } }