mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Emergency Fix (#587)
This commit is contained in:
@@ -39,6 +39,8 @@ public class DeprecatedItems {
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static String getItemName(int id) {
|
||||
if(id == -1)
|
||||
return "Unarmed";
|
||||
if(org.apollo.cache.def.ItemDefinition.lookup(id) == null || org.apollo.cache.def.ItemDefinition.lookup(id).getName() == null)
|
||||
return "Unarmed";
|
||||
return org.apollo.cache.def.ItemDefinition.lookup(id).getName();
|
||||
|
||||
@@ -149,6 +149,8 @@ public class ItemData {
|
||||
"sallet", "Facemask", "Bearhead"};
|
||||
|
||||
public static boolean isFullBody(int itemId) {
|
||||
if(itemId == -1)
|
||||
return false;
|
||||
String weapon = ItemDefinition.lookup(itemId).getName();
|
||||
if (weapon == null) {
|
||||
return false;
|
||||
@@ -162,6 +164,8 @@ public class ItemData {
|
||||
}
|
||||
|
||||
public static boolean isFullHelm(int itemId) {
|
||||
if(itemId == -1)
|
||||
return false;
|
||||
String weapon = ItemDefinition.lookup(itemId).getName();
|
||||
if (weapon == null) {
|
||||
return false;
|
||||
@@ -175,6 +179,8 @@ public class ItemData {
|
||||
}
|
||||
|
||||
public static boolean isFullMask(int itemId) {
|
||||
if(itemId == -1)
|
||||
return false;
|
||||
String weapon = ItemDefinition.lookup(itemId).getName();
|
||||
if (weapon == null) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user