Browse Source

Fix direction check on fisherman

ApisNecros 1 year ago
parent
commit
f3c949526d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      starfish.js

+ 2 - 1
starfish.js

@@ -818,7 +818,8 @@ class CodeBox {
      * @see https://esolangs.org/wiki/Starfish#Fisherman
      * @see https://esolangs.org/wiki/Starfish#Fisherman
      */
      */
     Fisherman() {
     Fisherman() {
-        if (this.curr_direction[0]) {
+        // Are we moving up or down?
+        if (!!this.curr_direction[1]) {
             if (this.dirWasLeft) {
             if (this.dirWasLeft) {
                 this.MoveLeft();
                 this.MoveLeft();
             }
             }