fixed world ore type-based systems never worked

This commit is contained in:
DimHaze authored and Cameron Ewell committed 2025-11-01 00:31:02 -04:00
1 parent db16ba4bf6
commit da19025a1b
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -548,10 +548,10 @@ namespace CalamityMod.Systems
}
// Save the set of ores that got generated
OreTypes[0] = (ushort)GenVars.copperBar;
OreTypes[1] = (ushort)GenVars.ironBar;
OreTypes[2] = (ushort)GenVars.silverBar;
OreTypes[3] = (ushort)GenVars.goldBar;
OreTypes[0] = (ushort)GenVars.copper;
OreTypes[1] = (ushort)GenVars.iron;
OreTypes[2] = (ushort)GenVars.silver;
OreTypes[3] = (ushort)GenVars.gold;
}
#endregion
}
+2 -2
View File
@@ -212,8 +212,8 @@ namespace CalamityMod.World.Planets
private int[] BarLoot = new int[]
{
GenVars.copperBar == TileID.Copper ? ItemID.CopperBar : ItemID.TinBar,
GenVars.ironBar == TileID.Iron ? ItemID.IronBar : ItemID.LeadBar
GenVars.copper == TileID.Copper ? ItemID.CopperBar : ItemID.TinBar,
GenVars.iron == TileID.Iron ? ItemID.IronBar : ItemID.LeadBar
};
private void FillChest(int id)