1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-19 18:33:00 +01:00

Repair optimizations. LOTS of repair optimizations.

This commit is contained in:
GJ
2012-02-23 18:32:12 -05:00
parent 5d8b049a45
commit a2e41f31ed
13 changed files with 290 additions and 476 deletions

View File

@@ -228,6 +228,30 @@ public class m
return id == 270 || id == 274 || id == 285 || id == 257 || id == 278;
}
public static boolean isHelmet(ItemStack is)
{
int id = is.getTypeId();
return id == 298 || id == 306 || id == 310 || id == 314;
}
public static boolean isChestplate(ItemStack is)
{
int id = is.getTypeId();
return id == 299 || id == 307 || id == 311 || id == 315;
}
public static boolean isPants(ItemStack is)
{
int id = is.getTypeId();
return id == 300 || id == 308 || id == 312 || id == 316;
}
public static boolean isBoots(ItemStack is)
{
int id = is.getTypeId();
return id == 301 || id == 305 || id == 313 || id == 317;
}
public static void convertToMySQL()
{
if(!LoadProperties.useMySQL)