Update ItemsKeptOnDeathPlugin.java

This commit is contained in:
Kyle
2019-11-22 13:39:28 +00:00
committed by GitHub
parent 64d6f24cdf
commit 2498327d11

View File

@@ -354,7 +354,7 @@ public class ItemsKeptOnDeathPlugin extends Plugin
// 4) In deep level wilderness: (>=21) only `LockedItem`s are kept
if (!Pets.isPet(id)
&& !LostIfNotProtected.isLostIfNotProtected(id)
&& !isTradeable(itemManager.getItemComposition(id))
&& !isTradeable(itemManager.getItemDefinition(id))
&& (wildyLevel <= 0
|| LockedItem.getBaseIdFromLockedId(id) != null
|| (wildyLevel <= DEEP_WILDY && ItemReclaimCost.of(id) != null))
@@ -794,4 +794,4 @@ public class ItemsKeptOnDeathPlugin extends Plugin
return itemWidget;
}
}
}