From 920b0d0f502fbf1a2f27afe1791c136d9bb35da8 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 7 Sep 2020 12:17:47 -0400 Subject: [PATCH] charger UI now shows reforges! --- UI/ChargingStationUI.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/UI/ChargingStationUI.cs b/UI/ChargingStationUI.cs index 958df6cc0f..2d272cc914 100644 --- a/UI/ChargingStationUI.cs +++ b/UI/ChargingStationUI.cs @@ -82,15 +82,7 @@ namespace CalamityMod.UI if (mouseRect.Intersects(pluggedSlotRect)) { if (!pluggedItem.IsAir) - { - // The charge variables are contained in CalamityGlobalItem so they must be set manually. SetDefaults won't cover it. - // Not sure if this line is necessary. - // Main.HoverItem = new Item(); - Main.HoverItem.SetDefaults(pluggedItem.type); - CalamityGlobalItem calHoverItem = Main.HoverItem.Calamity(), calPlugged = pluggedItem.Calamity(); - calHoverItem.Charge = calPlugged.Charge; - calHoverItem.MaxCharge = calPlugged.MaxCharge; - } + Main.HoverItem = pluggedItem; if (Main.mouseLeft && Main.mouseLeftRelease) {