item charges: remove unused slot from ItemChargeInfobox

This commit is contained in:
Adam
2022-01-07 22:23:17 -05:00
parent 6924802362
commit 4330d9f939
2 changed files with 2 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ import java.awt.Color;
import java.awt.image.BufferedImage;
import lombok.Getter;
import lombok.ToString;
import net.runelite.api.EquipmentInventorySlot;
import net.runelite.client.ui.overlay.infobox.Counter;
@Getter
@@ -37,21 +36,18 @@ class ItemChargeInfobox extends Counter
{
private final ItemChargePlugin plugin;
private final int item;
private final EquipmentInventorySlot slot;
ItemChargeInfobox(
ItemChargePlugin plugin,
BufferedImage image,
String name,
int charges,
int item,
EquipmentInventorySlot slot)
int item)
{
super(image, plugin, charges);
setTooltip(name);
this.plugin = plugin;
this.item = item;
this.slot = slot;
}
@Override

View File

@@ -627,7 +627,7 @@ public class ItemChargePlugin extends Plugin
final String name = itemManager.getItemComposition(id).getName();
final BufferedImage image = itemManager.getImage(id);
infobox = new ItemChargeInfobox(this, image, name, charges, id, slot);
infobox = new ItemChargeInfobox(this, image, name, charges, id);
infoBoxManager.addInfoBox(infobox);
infoboxes.put(slot, infobox);
}