mixin: add getItemDefinition, fuck it, let's have both

This commit is contained in:
ThatGamerBlue
2021-02-28 01:18:12 +00:00
parent 4f7c1a78ca
commit c61af0d39d
2 changed files with 19 additions and 1 deletions

View File

@@ -2040,10 +2040,18 @@ public abstract class RSClientMixin implements RSClient
@Nonnull
public ItemComposition getItemComposition(int id)
{
assert this.isClientThread() : "getItemDefinition must be called on client thread";
assert this.isClientThread() : "getItemComposition must be called on client thread";
return getRSItemDefinition(id);
}
@Inject
@Override
@Nonnull
public ItemComposition getItemDefinition(int id)
{
return getItemComposition(id);
}
@Inject
@Override
public NPCComposition getNpcDefinition(int id)