mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Add fiery tooltip thingie to blaze arrows
This commit is contained in:
1 parent
39206b231b
commit
c5dff65efa
1 file changed
+5
-1
@@ -1,5 +1,6 @@
|
||||
package tconstruct.weaponry.ammo;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.tools.ArrowMaterial;
|
||||
@@ -148,7 +149,10 @@ public class ArrowAmmo extends AmmoItem {
|
||||
// fix tooltip custom materials
|
||||
@Override
|
||||
public String getAbilityNameForType(int type, int part) {
|
||||
if(part >= 1) // only head has ability
|
||||
// blaze shaft?
|
||||
if(part == 1 && type == 3)
|
||||
return "\u00a76" + StatCollector.translateToLocal("modifier.tool.blaze");
|
||||
if(part >= 1) // only head has ability otherwise
|
||||
return "";
|
||||
return super.getAbilityNameForType(type, part);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user