From da19025a1bb286341d389d0745169bf36ca94e8a Mon Sep 17 00:00:00 2001 From: DimHaze <3815798709@qq.com> Date: Fri, 31 Oct 2025 00:42:56 +0800 Subject: [PATCH] fixed world ore type-based systems never worked --- Systems/WorldgenManagementSystem.cs | 8 ++++---- World/Planets/MudPlanet.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Systems/WorldgenManagementSystem.cs b/Systems/WorldgenManagementSystem.cs index 2886021901..7c6161d39a 100644 --- a/Systems/WorldgenManagementSystem.cs +++ b/Systems/WorldgenManagementSystem.cs @@ -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 } diff --git a/World/Planets/MudPlanet.cs b/World/Planets/MudPlanet.cs index 97113e4681..8b7cfa9dee 100644 --- a/World/Planets/MudPlanet.cs +++ b/World/Planets/MudPlanet.cs @@ -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)