Skip to content

Commit

Permalink
Add fiery tooltip thingie to blaze arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Nov 16, 2014
1 parent 39206b2 commit c5dff65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/tconstruct/weaponry/ammo/ArrowAmmo.java
@@ -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;
Expand Down Expand Up @@ -148,7 +149,10 @@ protected int getDefaultColor(int renderPass, int materialID) {
// 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);
}
Expand Down

0 comments on commit c5dff65

Please sign in to comment.