From 2e1dcbe5ac9510a28e19820a13ab1597c2e5ad97 Mon Sep 17 00:00:00 2001 From: Sol Huebner Date: Thu, 14 Nov 2019 11:32:17 -0500 Subject: [PATCH] Fix inLava detection If LP._right is the same as pos the user is still in lava :) --- TWANG32/TWANG32.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TWANG32/TWANG32.ino b/TWANG32/TWANG32.ino index a8e0793..b4fdd1c 100644 --- a/TWANG32/TWANG32.ino +++ b/TWANG32/TWANG32.ino @@ -1099,7 +1099,7 @@ bool inLava(int pos){ for(i = 0; i pos) return true; + if(LP._left <= pos && LP._right >= pos) return true; } } return false;