finish bringup

This commit is contained in:
Zeruth
2019-07-10 23:25:39 -04:00
parent 65c1794c2b
commit 7ba7bb64dd
5 changed files with 10 additions and 7 deletions

View File

@@ -706,7 +706,7 @@ public class ItemsKeptOnDeathPlugin extends Plugin
{
final int id = item.getId();
final int qty = item.getQty();
final ItemDefinition c = itemManager.getItemComposition(id);
final ItemDefinition c = itemManager.getItemDefinition(id);
final Widget itemWidget = parent.createChild(-1, WidgetType.GRAPHIC);
itemWidget.setOriginalWidth(Constants.ITEM_SPRITE_WIDTH);

View File

@@ -45,6 +45,9 @@ class KeyRemappingListener extends MouseAdapter implements KeyListener
@Inject
private KeyRemappingPlugin plugin;
@Inject
private KeyRemappingConfig config;
@Inject
private Client client;

View File

@@ -33,7 +33,7 @@ import java.util.Collections;
import java.util.List;
import net.runelite.api.Client;
import net.runelite.api.Item;
import net.runelite.api.ItemComposition;
import net.runelite.api.ItemDefinition;
import net.runelite.api.ItemID;
import net.runelite.client.game.ItemManager;
import static net.runelite.client.plugins.itemskeptondeath.ItemsKeptOnDeathPlugin.DeathItems;
@@ -80,7 +80,7 @@ public class ItemsKeptOnDeathPluginTest
private Item mItem(final int id, final int qty, final String name, final boolean tradeable, final int price)
{
// Mock Item Composition and necessary ItemManager methods for this item
ItemComposition c = mock(ItemComposition.class);
ItemDefinition c = mock(ItemDefinition.class);
when(c.getId())
.thenReturn(id);
when(c.getName())
@@ -96,7 +96,7 @@ public class ItemsKeptOnDeathPluginTest
when(c.getLinkedNoteId()).thenReturn(-1);
}
when(itemManager.getItemComposition(id)).thenReturn(c);
when(itemManager.getItemDefinition(id)).thenReturn(c);
when(itemManager.canonicalize(id)).thenReturn(id);
when(itemManager.getItemPrice(id, true)).thenReturn(price);