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 java.awt.image.BufferedImage;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import net.runelite.api.EquipmentInventorySlot;
|
|
||||||
import net.runelite.client.ui.overlay.infobox.Counter;
|
import net.runelite.client.ui.overlay.infobox.Counter;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@@ -37,21 +36,18 @@ class ItemChargeInfobox extends Counter
|
|||||||
{
|
{
|
||||||
private final ItemChargePlugin plugin;
|
private final ItemChargePlugin plugin;
|
||||||
private final int item;
|
private final int item;
|
||||||
private final EquipmentInventorySlot slot;
|
|
||||||
|
|
||||||
ItemChargeInfobox(
|
ItemChargeInfobox(
|
||||||
ItemChargePlugin plugin,
|
ItemChargePlugin plugin,
|
||||||
BufferedImage image,
|
BufferedImage image,
|
||||||
String name,
|
String name,
|
||||||
int charges,
|
int charges,
|
||||||
int item,
|
int item)
|
||||||
EquipmentInventorySlot slot)
|
|
||||||
{
|
{
|
||||||
super(image, plugin, charges);
|
super(image, plugin, charges);
|
||||||
setTooltip(name);
|
setTooltip(name);
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
this.item = item;
|
this.item = item;
|
||||||
this.slot = slot;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -627,7 +627,7 @@ public class ItemChargePlugin extends Plugin
|
|||||||
|
|
||||||
final String name = itemManager.getItemComposition(id).getName();
|
final String name = itemManager.getItemComposition(id).getName();
|
||||||
final BufferedImage image = itemManager.getImage(id);
|
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);
|
infoBoxManager.addInfoBox(infobox);
|
||||||
infoboxes.put(slot, infobox);
|
infoboxes.put(slot, infobox);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user