From a76491b66a2e304d9ae27a162f407b98c70fbafa Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Wed, 01 May 2019 20:30:24 -0400
Subject: [PATCH] Fix flush UI.

---
 cSpring.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/cSpring.java b/cSpring.java
index 914577b..9dd6edc 100644
--- a/cSpring.java
+++ b/cSpring.java
@@ -1208,7 +1208,10 @@
                 }
                 
                 if (edges.size()%2 != 0)
+                {
+                new Exception().printStackTrace();
                     System.exit(0);
+                }
             }
 
        //     if (clearsprings)
@@ -1516,7 +1519,10 @@
                     second = springs.get((i+1)%springs.size());
 
                     if (first == second)
+                    {
+                new Exception().printStackTrace();
                         System.exit(0);
+                    }
 
                     temp.set(first.GetOther(this).position);
                     temp.sub(position);
@@ -1646,7 +1652,10 @@
                 Spring second = springs.get((i+1)%springs.size());
                 
                 if (first == second)
+                {
+                    new Exception().printStackTrace();
                     System.exit(0);
+                }
                 
                 temp.set(first.GetOther(this).position);
                 temp.sub(position);
@@ -3289,6 +3298,7 @@
             
             if (N2.mass == Float.MAX_VALUE)
             {
+                    new Exception().printStackTrace();
                 System.exit(0);
                 magnitude *= solidity; // * K;
                 

--
Gitblit v1.6.2