Skip to content

Commit

Permalink
Urgent fix to Corn Maze
Browse files Browse the repository at this point in the history
Current stow logic isn't ever catching a true and returning.  This simplifies the check on if the stow was successful or not.
  • Loading branch information
Hiinky authored Nov 4, 2023
1 parent 13d6983 commit 3984e12
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions corn-maze.lic
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,11 @@ class CornMaze
def stow_thing(thing)
if @settings.cornmaze_containers.any?
@settings.cornmaze_containers.each do |container|
unless DRCI.put_away_item?(thing, container)
unless DRCI.stow_item?(thing)
DRC.message("#{thing} didn't fit anywhere. Dropping it.")
DRCI.dispose_trash(thing, @worn_trashcan, @worn_trashcan_verb)
end
end
return if DRCI.put_away_item?(thing, container)
return if DRCI.stow_item?(thing)
DRC.message("#{thing} didn't fit anywhere. Dropping it.")
DRCI.dispose_trash(thing)
return
end
else
unless DRCI.stow_item?(thing)
Expand Down

0 comments on commit 3984e12

Please sign in to comment.