mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
Little bit of cleanup.
This commit is contained in:
parent
2e30758c84
commit
0201935382
@ -50,6 +50,8 @@ object Localization {
|
||||
def WarningPower = ChatMessageComponent.createFromText("§aOpenComputers§f: ").appendComponent(localizeLater("gui.Chat.WarningPower"))
|
||||
|
||||
def WarningFingerprint(event: FMLFingerprintViolationEvent) = ChatMessageComponent.createFromText("§aOpenComputers§f: ").appendComponent(localizeLater("gui.Chat.WarningFingerprint", event.expectedFingerprint, event.fingerprints.toArray.mkString(", ")))
|
||||
|
||||
def InfoNewVersion(version: String) = ChatMessageComponent.createFromText("§aOpenComputers§f: ").appendComponent(localizeLater("gui.Chat.NewVersion", version))
|
||||
}
|
||||
|
||||
object Robot {
|
||||
|
@ -132,8 +132,7 @@ object EventHandler extends ITickHandler with IConnectionHandler with ICraftingH
|
||||
if (!MinecraftServer.getServer.isDedicatedServer || MinecraftServer.getServer.getConfigurationManager.isPlayerOpped(p.getCommandSenderName)) {
|
||||
Future {
|
||||
UpdateCheck.info onSuccess {
|
||||
case Some(release) => p.sendChatToPlayer(ChatMessageComponent.createFromText("§aOpenComputers§f: ").
|
||||
addFormatted(Settings.namespace + "gui.Chat.NewVersion", release.tag_name))
|
||||
case Some(release) => p.sendChatToPlayer(Localization.Chat.InfoNewVersion(release.tag_name))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user