deprecate invalid kittypes

This commit is contained in:
ThatGamerBlue
2021-05-17 06:27:50 +01:00
parent 829f0b134b
commit 7eb96d606a
3 changed files with 14 additions and 1 deletions

View File

@@ -12,6 +12,11 @@ public abstract class RSPlayerCompositionMixin implements RSPlayerComposition
@Override
public int getEquipmentId(KitType type)
{
if (type.ordinal() > 11)
{
return -1;
}
int id = getEquipmentIds()[type.getIndex()];
if (id < 512)
{
@@ -24,6 +29,11 @@ public abstract class RSPlayerCompositionMixin implements RSPlayerComposition
@Override
public int getKitId(KitType type)
{
if (type.ordinal() > 11)
{
return -1;
}
int id = getEquipmentIds()[type.getIndex()];
if (id < 256 || id >= 512)
{