Skip to content

Commit 135ea22

Browse files
committed
2 parents 5e0a3b9 + 51eeecc commit 135ea22

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ChestHelper/ChestEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public override void LoadData(TagCompound tag)
7979
public override bool IsTileValidForEntity(int i, int j)
8080
{
8181
var tile = Framing.GetTileSafely(i, j);
82-
return tile.TileType == TileID.Containers;
82+
return tile.TileType == TileID.Containers || TileID.Sets.BasicChest[tile.TileType];
8383
}
8484
}
8585
}

Generator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ internal static unsafe bool Generate(TagCompound tag, Point16 pos, bool ignoreNu
226226
}
227227
}
228228
}
229-
else if (type == TileID.Containers && d.FrameX % 36 == 0 && d.FrameY % 36 == 0) //generate an empty chest if there is no chest data
229+
else if ((type == TileID.Containers || TileID.Sets.BasicChest[tile.TileType]) && d.FrameX % 36 == 0 && d.FrameY % 36 == 0) //generate an empty chest if there is no chest data
230230
Chest.CreateChest(pos.X + x, pos.Y + y);
231231
}
232232

Items/ChestWand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override void SetDefaults()
3333
{
3434
Tile tile = Framing.GetTileSafely(Player.tileTargetX, Player.tileTargetY);
3535

36-
if (tile.TileType == TileID.Containers)
36+
if (tile.TileType == TileID.Containers || TileID.Sets.BasicChest[tile.TileType])
3737
{
3838
int xOff = tile.TileFrameX % 36 / 18;
3939
int yOff = tile.TileFrameY % 36 / 18;

0 commit comments

Comments
 (0)