From 2fdb311315bcae2f4d26ae3a542896eaa3749144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Fri, 13 May 2016 18:47:26 +0200 Subject: [PATCH] Fixed a bug where an equal Scale treshold wouldn't open Gates. --- cicaprojekt/Scale.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicaprojekt/Scale.java b/cicaprojekt/Scale.java index 6b613cc..27aa94f 100644 --- a/cicaprojekt/Scale.java +++ b/cicaprojekt/Scale.java @@ -52,7 +52,7 @@ public class Scale extends Field { } private void stackChanged() { - if (weight > threshold) + if (weight >= threshold) gateConnected.setOpen(true); else gateConnected.setOpen(false);