Skip to content

Commit 850cf81

Browse files
committed
v1.1.3, fix BossLogUI.allTreasureBags access on server
1 parent 772439e commit 850cf81

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

BossTracker.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ internal void FinalizeBossData() {
122122
Item newitem = new Item();
123123
BossCache = new bool[NPCLoader.NPCCount];
124124
foreach (var boss in SortedBosses) {
125-
foreach (int item in boss.loot) {
126-
newitem.SetDefaults(item);
127-
if (newitem.modItem != null && newitem.modItem.BossBagNPC != 0) BossLogUI.allTreasureBags.Add(item);
125+
if (!Main.dedServ) {
126+
foreach (int item in boss.loot) {
127+
newitem.SetDefaults(item);
128+
if (newitem.modItem != null && newitem.modItem.BossBagNPC != 0) BossLogUI.allTreasureBags.Add(item);
129+
}
128130
}
129131
boss.npcIDs.ForEach(x => BossCache[x] = true);
130132
}

build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
author = SheepishShepherd, jopojelly
2-
version = 1.1.2
2+
version = 1.1.3
33
displayName = Boss Checklist
44
homepage = http://forums.terraria.org/index.php?threads/boss-checklist-in-game-progression-checklist.50668/
55
hideCode = false

0 commit comments

Comments
 (0)