Skip to content

Commit

Permalink
Restored some lines in ItemLoader.ResizeArrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirsario committed Jul 6, 2020
1 parent 14f6f62 commit 532771b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions patches/tModLoader/Terraria/ModLoader/ItemLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ internal static void ResizeArrays(bool unloading) {
Array.Resize(ref Lang._itemNameCache, nextItem);
Array.Resize(ref Lang._itemTooltipCache, nextItem);

for (int k = ItemID.Count; k < nextItem; k++) {
Lang._itemNameCache[k] = LocalizedText.Empty;
Lang._itemTooltipCache[k] = ItemTooltip.None;
}

if (unloading)
Array.Resize(ref Main.anglerQuestItemNetIDs, vanillaQuestFishCount);
else
Expand Down

0 comments on commit 532771b

Please sign in to comment.