Skip to content

Commit

Permalink
move mekasuit toggle messages to action bar
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Sep 1, 2024
1 parent 432e917 commit 7cb49e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/mekanism/common/content/gear/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ public boolean handlesAnyModeChange() {
public void displayModeChange(Player player, Component modeName, IHasTextComponent mode) {
Component modeComponent = mode.getTextComponent();
if (modeComponent.getStyle().getColor() != null) {
player.sendSystemMessage(MekanismUtils.logFormat(MekanismLang.MODULE_MODE_CHANGE.translate(modeName, modeComponent)));
player.displayClientMessage(MekanismLang.MODULE_MODE_CHANGE.translate(modeName, modeComponent), true);
} else {
player.sendSystemMessage(MekanismUtils.logFormat(MekanismLang.MODULE_MODE_CHANGE.translate(modeName, EnumColor.INDIGO, modeComponent)));
player.displayClientMessage(MekanismLang.MODULE_MODE_CHANGE.translate(modeName, EnumColor.INDIGO, modeComponent), true);
}
}

Expand All @@ -325,7 +325,7 @@ public void toggleEnabled(IModuleContainer moduleContainer, ItemStack stack, Pla
} else {//Going from disabled to enabled
message = MekanismLang.GENERIC_STORED.translate(modeName, EnumColor.BRIGHT_GREEN, MekanismLang.MODULE_ENABLED_LOWER);
}
player.sendSystemMessage(MekanismUtils.logFormat(message));
player.displayClientMessage(message, true);
((ModuleContainer) moduleContainer).toggleEnabled(player.level().registryAccess(), stack, data);
}

Expand Down

0 comments on commit 7cb49e6

Please sign in to comment.