Skip to content

Commit

Permalink
Fix Migration for messages without color codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joo200 committed Mar 5, 2022
1 parent f1d47b0 commit 7a36576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ public static String legacyToMiniMessage(String message) {
TextComponent deserialize = LegacyComponentSerializer.legacySection().deserialize(message);
return MiniMessage.miniMessage().serialize(deserialize);
}
return null;
return message;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected void migrate(RegionDatabase store) throws MigrationException {
String val = region.getFlag(replaceFlag);
if (val != null) {
String migration = migrateToMinimessage(val);
if (migration != null) {
if (!val.equals(migration)) {
region.setFlag(replaceFlag, migration);
changed++;
}
Expand Down

0 comments on commit 7a36576

Please sign in to comment.