Skip to content

Commit

Permalink
Avoid stupidity
Browse files Browse the repository at this point in the history
  • Loading branch information
SmylerMC committed Nov 16, 2020
1 parent 7c16684 commit 149ad10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ forge_version = 1.12.2-14.23.5.2847
mcp_mappings = stable_39

# Mod stuff
mod_version = 1.0.0-beta6.3
mod_version = 1.0.0-beta6.4
mod_group = fr.thesmyler.terramap
mod_id = terramap
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else if(args.length == 2) {
break;
case "hide":
TerramapServerPreferences.setShouldDisplayPlayer(world, uuid, false);
sender.sendMessage(CommandUtils.getComponentForSender("terramap.commands.terrashow.setvisible", clientSupportsLocalize, player.getDisplayName().getFormattedText()));
sender.sendMessage(CommandUtils.getComponentForSender("terramap.commands.terrashow.sethidden", clientSupportsLocalize, player.getDisplayName().getFormattedText()));
break;
default:
throw new CommandException(CommandUtils.getStringForSender("terramap.commands.terrashow.invalid_action", clientSupportsLocalize));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ private void loadTranslationMappings() {
while(line != null) {
try {
int delimiter = line.indexOf("=");
if(delimiter == -1 || delimiter >= line.length() - 1) continue;
if(delimiter == -1 || delimiter >= line.length() - 1) {
line = txtReader.readLine();
continue;
}
String key = line.substring(0, delimiter);
String value = line.substring(delimiter + 1);
this.translationMappings.put(key, value);
line = txtReader.readLine();
} catch(Exception e) {
TerramapMod.logger.warn("Failed to parse translation line " + line + " : " + e.getLocalizedMessage());
}
Expand Down

0 comments on commit 149ad10

Please sign in to comment.