charger UI now shows reforges!

This commit is contained in:
Ozzatron committed 2020-09-07 12:17:47 -04:00
1 parent f6848e5509
commit 920b0d0f50
1 file changed
+1 -9
+1 -9
View File
@@ -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)
{