Update InnScene.java

add default message if localizer can't find the translation
This commit is contained in:
Anthony Calosa
2022-08-13 13:10:32 +08:00
committed by GitHub
parent 659f20edff
commit f1185707ee

View File

@@ -61,7 +61,7 @@ public class InnScene extends UIScene {
sell.getLabel().setText(Forge.getLocalizer().getMessage("lblSell"));
tempHitPoints = ui.findActor("tempHitPoints");
tempHitPoints.setText(Forge.getLocalizer().getMessage("lblTempHitPoints"));
tempHitPoints.setText(Forge.getLocalizer().getMessageorUseDefault("lblTempHitPoints", "Temporary Hit Points"));
leaveIcon = ui.findActor("leaveIcon");
healIcon = ui.findActor("healIcon");