Skip to content

Commit

Permalink
Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Xujiayao committed Feb 10, 2024
1 parent 1c8961d commit 41df66e
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,8 @@ private void broadcastChatMessage(PlayerChatMessage playerChatMessage, CommandSo
//$$ MinecraftEvents.SERVER_MESSAGE.invoker().message(filteredText.filtered().serverContent().getString(), commandSourceStack);
//$$ // TODO filtered() or raw() ?
//$$ }
//#elseif MC > 11502
//$$ @Inject(method = "broadcastMessage(Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/ChatType;Ljava/util/UUID;)V", at = @At("HEAD"))
//$$ private void broadcastMessage(Component component, ChatType chatType, UUID uUID, CallbackInfo ci) {
//$$ // TODO Check if need (uuid == Util.NIL_UUID)
//$$ MinecraftEvents.SERVER_MESSAGE.invoker().message(component.getString(), SERVER.createCommandSourceStack());
//$$ }
//#else
//$$ @Inject(method = "broadcastMessage(Lnet/minecraft/network/chat/Component;)V", at = @At("HEAD"))
//$$ private void broadcastMessage(Component component, CallbackInfo ci) {
//$$ MinecraftEvents.SERVER_MESSAGE.invoker().message(component.getString(), SERVER.createCommandSourceStack());
//$$ }
//#endif
// TODO This feature has been removed in versions 1.18.2 and below due to compatibility issues (#197)

@Inject(method = "placeNewPlayer", at = @At("RETURN"))
//#if MC >= 12002
Expand Down

0 comments on commit 41df66e

Please sign in to comment.