From 223feb925af9a37c5c606cddac6d55d38a12cd49 Mon Sep 17 00:00:00 2001 From: ConnorJC Date: Tue, 20 Nov 2018 11:59:21 -0500 Subject: [PATCH] Fixes _Node.isPill and _Node.isPowerPill() --- System/game/system/_Node.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/game/system/_Node.java b/System/game/system/_Node.java index 1c4f602..0341134 100644 --- a/System/game/system/_Node.java +++ b/System/game/system/_Node.java @@ -17,8 +17,8 @@ public class _Node implements Node public int getY() { return y; } public boolean isJunction() { return numNeighbors > 2; } - public boolean isPill() { return pillIndex <= 0; } - public boolean isPowerPill() { return powerPillIndex <= 0; } + public boolean isPill() { return pillIndex >= 0; } + public boolean isPowerPill() { return powerPillIndex >= 0; } public int getNumNeighbors() { return numNeighbors; } public List getNeighbors() { return Arrays.asList(Arrays.copyOf(neighbors, neighbors.length)); }