Skip to content

Commit b2cb6ae

Browse files
committed
Fix problem with formatted message logic
1 parent 636a6b6 commit b2cb6ae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- FormattedMessage formatting mistake
12+
913
## [0.7.3r] - 2021-10-13
1014

1115
### Removed

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/ChatBoxPeripheral.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public final MethodResult sendFormattedMessage(@Nonnull IArguments arguments) th
6565
IFormattableTextComponent component = ITextComponent.Serializer.fromJson(message);
6666
if (component == null)
6767
return MethodResult.of(null, "incorrect json");
68-
IFormattableTextComponent preparedMessage = new StringTextComponent(String.format(PREFIX_FORMAT, arguments.optString(1, AdvancedPeripheralsConfig.defaultChatBoxPrefix))).append(message);
68+
IFormattableTextComponent preparedMessage = new StringTextComponent(String.format(PREFIX_FORMAT, arguments.optString(1, AdvancedPeripheralsConfig.defaultChatBoxPrefix))).append(component);
6969
for (ServerPlayerEntity player : ServerLifecycleHooks.getCurrentServer().getPlayerList().getPlayers()) {
7070
player.sendMessage(preparedMessage, Util.NIL_UUID);
7171
}

0 commit comments

Comments
 (0)