mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
fix and port the new Localization message system and update AE2 dependency. (#89)
This commit is contained in:
1 parent
4ba6e1d9ee
commit
a148762bfd
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.59-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.3:dev")
|
||||
implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-645-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-658-GTNH:dev")
|
||||
implementation("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
|
||||
implementation("curse.maven:thaumcraft-nei-plugin-225095:2241913") { transitive = false }
|
||||
|
||||
|
||||
@@ -290,10 +290,10 @@ public class PartEssentiaStorageMonitor extends ThEPartBase
|
||||
// Report to the player
|
||||
if (this.monitorLocked) {
|
||||
// Locked
|
||||
player.addChatMessage(PlayerMessages.isNowLocked.get());
|
||||
player.addChatMessage(PlayerMessages.isNowLocked.toChat());
|
||||
} else {
|
||||
// Unlocked
|
||||
player.addChatMessage(PlayerMessages.isNowUnlocked.get());
|
||||
player.addChatMessage(PlayerMessages.isNowUnlocked.toChat());
|
||||
}
|
||||
|
||||
// Mark for sync & save
|
||||
|
||||
@@ -88,14 +88,14 @@ public class ThEInteractionHelper implements IThEInteractionHelper {
|
||||
// Ensure the terminal has power
|
||||
if (terminalInterface.getAECurrentPower(wirelessTerminal) == 0) {
|
||||
// Terminal is dead
|
||||
player.addChatMessage(PlayerMessages.DeviceNotPowered.get());
|
||||
player.addChatMessage(PlayerMessages.DeviceNotPowered.toChat());
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure the terminal is linked
|
||||
if (!HandlerWirelessEssentiaTerminal.isTerminalLinked(terminalInterface, wirelessTerminal)) {
|
||||
// Unlinked terminal
|
||||
player.addChatMessage(PlayerMessages.CommunicationError.get());
|
||||
player.addChatMessage(PlayerMessages.CommunicationError.toChat());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -107,11 +107,11 @@ public class ThEInteractionHelper implements IThEInteractionHelper {
|
||||
|
||||
// Error occured
|
||||
if (accessPoints == null) {
|
||||
player.addChatMessage(PlayerMessages.CommunicationError.get());
|
||||
player.addChatMessage(PlayerMessages.CommunicationError.toChat());
|
||||
}
|
||||
// None in range
|
||||
else if (accessPoints.isEmpty()) {
|
||||
player.addChatMessage(PlayerMessages.OutOfRange.get());
|
||||
player.addChatMessage(PlayerMessages.OutOfRange.toChat());
|
||||
}
|
||||
// Launch the gui
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user