commit 38cabd9480a7be4bc388481c985bf4a9b8c03526
Author: leszek <leszek@koltunski.pl>
Date:   Fri Sep 1 22:38:38 2023 +0200

    progress with FactoryBandagedMegaminx.

diff --git a/src/main/java/org/distorted/bandaged/BandagedCreatorTouchControl.java b/src/main/java/org/distorted/bandaged/BandagedCreatorTouchControl.java
index 75e1652b..6aaed925 100644
--- a/src/main/java/org/distorted/bandaged/BandagedCreatorTouchControl.java
+++ b/src/main/java/org/distorted/bandaged/BandagedCreatorTouchControl.java
@@ -192,12 +192,8 @@ public class BandagedCreatorTouchControl
     Static4D touchPoint = new Static4D(x, y, 0, 0);
     Static4D rotatedTouchPoint= QuatHelper.rotateVectorByInvertedQuat(touchPoint, quat);
     Static4D rotatedCamera= QuatHelper.rotateVectorByInvertedQuat(CAMERA_POINT, quat);
-
     boolean touched = objectTouched(rotatedTouchPoint,rotatedCamera);
-
-    if( !touched ) return -1;
-
-    return mObject.whichCubitTouched(mTouch);
+    return touched ? mObject.whichCubitTouched(mTouch) : -1;
     }
 }
 
