Skip to content

Commit

Permalink
fix(/refillchestmany): broken chest lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderCow committed May 9, 2017
1 parent 4577286 commit 8d9251d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Implementation/UserInteractionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ private void RefillChestManyCommand_Exec(CommandArgs args) {

DPoint chestLocation = new DPoint(chest.x, chest.y);
Tile chestTile = TerrariaUtils.Tiles[chestLocation];
if (!chestTile.active() || chestTile.type != TileID.Containers || chestTile.type != TileID.Containers2)
if (!chestTile.active() || (chestTile.type != TileID.Containers && chestTile.type != TileID.Containers2))
continue;

if (TerrariaUtils.Tiles.GuessChestKind(chestLocation) != chestKindToSelect)
Expand Down

0 comments on commit 8d9251d

Please sign in to comment.