From 292664b8e1273590bc293a1fe49a7166531e4e73 Mon Sep 17 00:00:00 2001 From: drcrazy Date: Wed, 16 Jan 2019 18:07:48 +0300 Subject: [PATCH] Fixed i18n usage on server. Closes #1655 --- src/main/java/techreborn/tiles/TileAlarm.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/techreborn/tiles/TileAlarm.java b/src/main/java/techreborn/tiles/TileAlarm.java index fecd3d009..a909b4cb8 100644 --- a/src/main/java/techreborn/tiles/TileAlarm.java +++ b/src/main/java/techreborn/tiles/TileAlarm.java @@ -25,7 +25,6 @@ package techreborn.tiles; import net.minecraft.block.state.IBlockState; -import net.minecraft.client.resources.I18n; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; @@ -38,6 +37,7 @@ import net.minecraft.util.text.TextFormatting; import net.minecraft.world.World; import reborncore.api.IToolDrop; import reborncore.common.util.ChatUtils; +import reborncore.common.util.StringUtils; import techreborn.blocks.BlockAlarm; import techreborn.init.ModBlocks; import techreborn.init.ModSounds; @@ -54,7 +54,8 @@ public class TileAlarm extends TileEntity } else { selectedSound = 1; } - ChatUtils.sendNoSpamMessages(MessageIDs.alarmID, new TextComponentString(TextFormatting.GRAY + I18n.format("techreborn.message.alarm") + " " + "Alarm " + selectedSound)); + ChatUtils.sendNoSpamMessages(MessageIDs.alarmID, new TextComponentString( + TextFormatting.GRAY + StringUtils.t("techreborn.message.alarm") + " " + "Alarm " + selectedSound)); } }