mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-29 08:26:37 +01:00
Fix GeneratingKineticTileEntity rendering the gui overlay crashing the game
This commit is contained in:
parent
a15937b5fc
commit
37a61ef0e4
1 changed files with 3 additions and 2 deletions
|
@ -69,9 +69,10 @@ public abstract class GeneratingKineticTileEntity extends KineticTileEntity {
|
|||
speed = Math.abs(speed);
|
||||
float stressTotal = stressBase * speed;
|
||||
|
||||
String stressString = spacing + "%s%s" + Lang.translate("generic.unit.stress") + " " + TextFormatting.DARK_GRAY + "%s";
|
||||
// FIXME add colours back
|
||||
String stressString = spacing + "%s" + Lang.translate("generic.unit.stress").getUnformattedComponentText() + " %s";
|
||||
tooltip.add(ITextComponent.of(String.format(stressString, IHaveGoggleInformation.format(stressBase), Lang.translate("gui.goggles.base_value").getUnformattedComponentText())));
|
||||
tooltip.add(ITextComponent.of(String.format(stressString, TextFormatting.GRAY, IHaveGoggleInformation.format(stressTotal), Lang.translate("gui.goggles.at_current_speed").getUnformattedComponentText())));
|
||||
tooltip.add(ITextComponent.of(String.format(stressString, IHaveGoggleInformation.format(stressTotal), Lang.translate("gui.goggles.at_current_speed").getUnformattedComponentText())));
|
||||
|
||||
added = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue