remove < > symbols from hud.msg.empty

This commit is contained in:
danyadev committed 2025-11-14 14:58:17 +03:00
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);