//in Terraria.Main.Draw after if statement checking whether texture2D is null call // TileLoader.PostDraw(j, i, type, Main.spriteBatch); public static void PostDraw(int i, int j, int type, SpriteBatch spriteBatch) { ModTile modTile = GetTile(type); if (modTile != null) { modTile.PostDraw(i, j, spriteBatch); } foreach (GlobalTile globalTile in globalTiles) { globalTile.PostDraw(i, j, type, spriteBatch); } }