mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
Added Ender Crystal and new new recipe for Staff of Travel
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user