Fixed localizeAndFormat, MIGHT have caused issues otherwise, not sure.

This commit is contained in:
Vexatos committed 2014-08-18 14:59:02 +02:00
1 parent 88ddc9a85a
commit 80b652dd2c
8 files changed
+13 -16

No files matched your search

+2 -5
View File
@@ -18,11 +18,8 @@ import net.minecraft.command.ICommandSender;
import net.minecraft.command.WrongUsageException;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World;
import com.mojang.authlib.GameProfile;
import forestry.api.mail.ITradeStation;
import forestry.api.mail.PostManager;
import forestry.api.mail.TradeStationInfo;
@@ -56,7 +53,7 @@ public class CommandMail extends CommandMC {
@Override
public void processCommand(ICommandSender sender, String[] arguments) {
if (arguments.length <= 0)
throw new WrongUsageException(StringUtil.localize("chat.help",this.getCommandUsage(sender)));
throw new WrongUsageException(StringUtil.localizeAndFormat("chat.help", this.getCommandUsage(sender)));
if (arguments[0].matches("trades")) {
commandTrades(sender, arguments);
@@ -65,7 +62,7 @@ public class CommandMail extends CommandMC {
commandVirtualize(sender, arguments);
return;
} else if (arguments[0].matches("help")) {
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.0", this.getCommandName()));
sendChatMessage(sender, StringUtil.localizeAndFormat("chat.mail.command.help.0", this.getCommandName()));
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.1"));
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.2"));
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.3"));