mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-28 15:56:20 +00:00
remove < > symbols from hud.msg.empty
This commit is contained in:
1 parent
6b6595aaec
commit
dee612202c
16 files changed
+31
-38
No files matched your search
@@ -39,12 +39,10 @@ public class TankFluidHandler implements IWailaDataProvider {
|
||||
FluidTankInfo tank = this.getTank(accessor);
|
||||
FluidStack stack = tank != null ? tank.fluid : null;
|
||||
String name = currenttip.get(0);
|
||||
String fluidName = stack == null ? LangUtil.translateG("hud.msg.empty")
|
||||
: stack.getFluid().getLocalizedName(stack);
|
||||
|
||||
if (stack != null) {
|
||||
currenttip.set(0, name + " < " + stack.getFluid().getLocalizedName(stack) + " >");
|
||||
} else {
|
||||
currenttip.set(0, name + " " + LangUtil.translateG("hud.msg.empty"));
|
||||
}
|
||||
currenttip.set(0, name + " < " + fluidName + " >");
|
||||
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@@ -39,12 +39,10 @@ public class TankFluidHandler implements IWailaDataProvider {
|
||||
|
||||
FluidStack fluid = tanks[0].fluid;
|
||||
String name = currenttip.get(0);
|
||||
String fluidName = fluid == null ? LangUtil.translateG("hud.msg.empty")
|
||||
: fluid.getFluid().getLocalizedName(fluid);
|
||||
|
||||
if (fluid == null) {
|
||||
currenttip.set(0, name + " " + LangUtil.translateG("hud.msg.empty"));
|
||||
} else {
|
||||
currenttip.set(0, name + String.format(" < %s >", fluid.getFluid().getLocalizedName(fluid)));
|
||||
}
|
||||
currenttip.set(0, name + " < " + fluidName + " >");
|
||||
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@@ -37,12 +37,10 @@ public class TankFluidHandler implements IWailaDataProvider {
|
||||
|
||||
FluidStack fluid = tank.getFluid();
|
||||
String name = currenttip.get(0);
|
||||
String fluidName = fluid == null ? LangUtil.translateG("hud.msg.empty")
|
||||
: fluid.getFluid().getLocalizedName(fluid);
|
||||
|
||||
if (fluid == null) {
|
||||
currenttip.set(0, name + " " + LangUtil.translateG("hud.msg.empty"));
|
||||
} else {
|
||||
currenttip.set(0, name + String.format(" < %s >", fluid.getFluid().getLocalizedName(fluid)));
|
||||
}
|
||||
currenttip.set(0, name + " < " + fluidName + " >");
|
||||
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@@ -46,12 +46,10 @@ public class FluiductFluidHandler implements IWailaDataProvider {
|
||||
}
|
||||
|
||||
String name = currenttip.get(0);
|
||||
String fluidName = fluid == null ? LangUtil.translateG("hud.msg.empty")
|
||||
: fluid.getFluid().getLocalizedName(fluid);
|
||||
|
||||
if (fluid == null) {
|
||||
currenttip.set(0, name + " " + LangUtil.translateG("hud.msg.empty"));
|
||||
} else {
|
||||
currenttip.set(0, name + String.format(" < %s >", fluid.getFluid().getLocalizedName(fluid)));
|
||||
}
|
||||
currenttip.set(0, name + " < " + fluidName + " >");
|
||||
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@@ -40,14 +40,17 @@ public class HUDHandlerCache implements IWailaDataProvider {
|
||||
if (storedItem != null) {
|
||||
String namex = GameData.getItemRegistry().getNameForObject(storedItem.getItem());
|
||||
name += String.format(
|
||||
" < " + SpecialChars.getRenderString(
|
||||
" < %s %s >",
|
||||
SpecialChars.getRenderString(
|
||||
"waila.stack",
|
||||
"1",
|
||||
namex,
|
||||
"0",
|
||||
String.valueOf(storedItem.getItemDamage())) + color + " %s >",
|
||||
String.valueOf(storedItem.getItemDamage())) + color,
|
||||
storedItem.getDisplayName());
|
||||
} else name += " " + LangUtil.translateG("hud.msg.empty");
|
||||
} else {
|
||||
name += " < " + LangUtil.translateG("hud.msg.empty") + " >";
|
||||
}
|
||||
|
||||
currenttip.set(0, name);
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -36,12 +36,10 @@ public class TankFluidHandler implements IWailaDataProvider {
|
||||
FluidStack fluid = (FluidStack) ThermalExpansionModule.TileTank_getTankFluid
|
||||
.invoke(accessor.getTileEntity());
|
||||
String name = currenttip.get(0);
|
||||
String fluidName = fluid == null ? LangUtil.translateG("hud.msg.empty")
|
||||
: fluid.getFluid().getLocalizedName(fluid);
|
||||
|
||||
if (fluid == null) {
|
||||
currenttip.set(0, name + " " + LangUtil.translateG("hud.msg.empty"));
|
||||
} else {
|
||||
currenttip.set(0, name + String.format(" < %s >", fluid.getFluid().getLocalizedName(fluid)));
|
||||
}
|
||||
currenttip.set(0, name + " < " + fluidName + " >");
|
||||
|
||||
} catch (Exception e) {
|
||||
WailaExceptionHandler.handleErr(e, accessor.getTileEntity().getClass().getName(), currenttip);
|
||||
|
||||
Reference in new issue
Block a user