Skip to content

Commit

Permalink
Fix repair sign translation error
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Nov 11, 2024
1 parent 0b49421 commit 9d3520c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.earth2me.essentials.commands.Commandrepair;
import com.earth2me.essentials.commands.NotEnoughArgumentsException;
import net.ess3.api.IEssentials;
import net.ess3.api.TranslatableException;

public class SignRepair extends EssentialsSign {
public SignRepair() {
Expand Down Expand Up @@ -42,6 +43,8 @@ protected boolean onSignInteract(final ISign sign, final User player, final Stri
throw new NotEnoughArgumentsException();
}

} catch (final TranslatableException ex) {
throw new SignException(ex.getTlKey(), ex.getArgs());
} catch (final Exception ex) {
throw new SignException(ex, "errorWithMessage", ex.getMessage());
}
Expand Down

0 comments on commit 9d3520c

Please sign in to comment.