Skip to content

Commit

Permalink
v1.1.3, fix BossLogUI.allTreasureBags access on server
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jul 1, 2020
1 parent 772439e commit 850cf81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions BossTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ internal void FinalizeBossData() {
Item newitem = new Item();
BossCache = new bool[NPCLoader.NPCCount];
foreach (var boss in SortedBosses) {
foreach (int item in boss.loot) {
newitem.SetDefaults(item);
if (newitem.modItem != null && newitem.modItem.BossBagNPC != 0) BossLogUI.allTreasureBags.Add(item);
if (!Main.dedServ) {
foreach (int item in boss.loot) {
newitem.SetDefaults(item);
if (newitem.modItem != null && newitem.modItem.BossBagNPC != 0) BossLogUI.allTreasureBags.Add(item);
}
}
boss.npcIDs.ForEach(x => BossCache[x] = true);
}
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = SheepishShepherd, jopojelly
version = 1.1.2
version = 1.1.3
displayName = Boss Checklist
homepage = http://forums.terraria.org/index.php?threads/boss-checklist-in-game-progression-checklist.50668/
hideCode = false
Expand Down

0 comments on commit 850cf81

Please sign in to comment.