mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
More arrow tags and display fixes
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user