mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
revert to old text get method
This commit is contained in:
1 parent
b25ef783b3
commit
0c87c31d1d
1 file changed
+3
-7
@@ -151,13 +151,9 @@ public class ItemLokiRing extends ItemRelicBauble implements IExtendedWireframeC
|
||||
GTNHLib.proxy.printMessageAboveHotbar(text, 60, true, true);
|
||||
}
|
||||
public static String getLokiModeText(ItemStack stack){
|
||||
String text = EnumChatFormatting.GOLD + StatCollector.translateToLocal("item.botania:lokiRing.name") + " ";
|
||||
if (isRingEnabled(stack)) {
|
||||
text = text + EnumChatFormatting.GREEN + StatCollector.translateToLocal("botaniamisc.lokiOn");
|
||||
} else {
|
||||
text = text + EnumChatFormatting.RED + StatCollector.translateToLocal("botaniamisc.lokiOff");
|
||||
}
|
||||
return text;
|
||||
return EnumChatFormatting.GOLD + StatCollector.translateToLocal("item.botania:lokiRing.name") + " " + (isRingEnabled(stack) ?
|
||||
EnumChatFormatting.GREEN + StatCollector.translateToLocal("botaniamisc.lokiOn") :
|
||||
EnumChatFormatting.RED + StatCollector.translateToLocal("botaniamisc.lokiOff"));
|
||||
}
|
||||
public static boolean isRingEnabled (final ItemStack stack){
|
||||
return stack.stackTagCompound.getBoolean(TAG_MODE);
|
||||
|
||||
Reference in new issue
Block a user