//add modded chests public void SetDefaultsPostContent() { var tileObjectData = TileObjectData.GetTileData(Type, 0); var anchorTileList = new List <int>(tileObjectData.AnchorAlternateTiles); for (int i = TileID.Count; i < TileLoader.TileCount; i++) { if (TileLoader.ModChestName(i) != String.Empty) { anchorTileList.Add(i); } } tileObjectData.AnchorAlternateTiles = anchorTileList.ToArray(); }
public static bool IsChest(int type) { return(type == 21 || TileLoader.ModChestName(type).Length > 0); }
public static bool IsChest(this Tile tile) => tile.type == 21 || TileLoader.ModChestName(tile.type).Length > 0;