From 8d9251dd0cc7e85599e78344edd7c9b1ea2980b1 Mon Sep 17 00:00:00 2001 From: CoderCow Date: Fri, 5 May 2017 16:46:38 +0200 Subject: [PATCH] fix(/refillchestmany): broken chest lookup --- Implementation/UserInteractionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Implementation/UserInteractionHandler.cs b/Implementation/UserInteractionHandler.cs index 8c37bb8..4a196f1 100644 --- a/Implementation/UserInteractionHandler.cs +++ b/Implementation/UserInteractionHandler.cs @@ -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)