item charges: remove unused slot from ItemChargeInfobox
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user