More arrow tags and display fixes

This commit is contained in:
Bernhard Bonigl committed 2014-10-19 16:23:01 +02:00
1 parent 1194d60678
commit 11fcf21eb6
8 files changed
+52 -19

No files matched your search

@@ -82,6 +82,12 @@ public class ArrowAmmo extends AmmoItem {
return TinkerWeaponry.fletching;
}
// handle is custom material
@Override
public int durabilityTypeHandle() {
return 0;
}
@Override
public String[] getTraits ()
{
@@ -134,4 +140,12 @@ public class ArrowAmmo extends AmmoItem {
return mat.color;
}
// fix tooltip custom materials
@Override
public String getAbilityNameForType(int type, int part) {
if(part >= 1) // only head has ability
return "";
return super.getAbilityNameForType(type, part);
}
}