mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-12 10:50:37 +01:00
fabric-1.19.1: fix mixins for 1.19.1
This commit is contained in:
parent
1de1c7ce69
commit
e943a26a5b
@ -293,7 +293,7 @@ public class FabricServer extends DynmapServerInterface {
|
||||
@Override
|
||||
public void broadcastMessage(String msg) {
|
||||
Text component = Text.literal(msg);
|
||||
server.getPlayerManager().broadcast(component, MessageType.SYSTEM);
|
||||
server.getPlayerManager().broadcast(component, false);
|
||||
Log.info(stripChatColor(msg));
|
||||
}
|
||||
|
||||
|
@ -34,13 +34,11 @@ public abstract class ServerPlayNetworkHandlerMixin {
|
||||
@Inject(
|
||||
method = "handleDecoratedMessage",
|
||||
at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/server/filter/FilteredMessage;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/registry/RegistryKey;)V",
|
||||
shift = At.Shift.BEFORE
|
||||
value = "HEAD"
|
||||
)
|
||||
)
|
||||
public void onGameMessage(FilteredMessage<SignedMessage> message, CallbackInfo ci) {
|
||||
ServerChatEvents.EVENT.invoker().onChatMessage(player, message.raw().getContent().getString());
|
||||
public void onGameMessage(SignedMessage signedMessage, CallbackInfo ci) {
|
||||
ServerChatEvents.EVENT.invoker().onChatMessage(player, signedMessage.getContent().getString());
|
||||
}
|
||||
|
||||
@Inject(
|
||||
@ -52,7 +50,7 @@ public abstract class ServerPlayNetworkHandlerMixin {
|
||||
),
|
||||
locals = LocalCapture.CAPTURE_FAILHARD
|
||||
)
|
||||
public void onSignUpdate(UpdateSignC2SPacket packet, List<FilteredMessage<String>> signText, CallbackInfo info,
|
||||
public void onSignUpdate(UpdateSignC2SPacket packet, List<FilteredMessage> signText, CallbackInfo info,
|
||||
ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, BlockEntity blockEntity, SignBlockEntity signBlockEntity)
|
||||
{
|
||||
// Pull the raw text from the input.
|
||||
|
Loading…
Reference in New Issue
Block a user