Added Ender Crystal and new new recipe for Staff of Travel

This commit is contained in:
CrazyPants committed 2014-09-08 01:22:45 +08:00
1 parent 8e8f7cdf00
commit bff0e043ea
13 files changed
+191 -110

No files matched your search

@@ -68,11 +68,8 @@ public class ItemMaterial extends Item {
if(par1ItemStack == null) {
return false;
}
int damage = par1ItemStack.getItemDamage();
if(damage == Material.VIBRANT_CYSTAL.ordinal() || damage == Material.PULSATING_CYSTAL.ordinal()) {
return true;
}
return false;
int damage = MathHelper.clamp_int(par1ItemStack.getItemDamage(), 0, Material.values().length);
return Material.values()[damage].hasEffect;
}
}