Skip to content

Commit

Permalink
Renamed some mixin methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ya-ilya committed Sep 30, 2023
1 parent 7803f6b commit da1f0cc
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 @@ -22,7 +22,7 @@ public abstract class MixinScreen {
),
cancellable = true
)
private void onRunCommand(Style style, CallbackInfoReturnable<Boolean> callbackInfoReturnable) {
private void handleTextClickHook(Style style, CallbackInfoReturnable<Boolean> callbackInfoReturnable) {
if (Objects.requireNonNull(style.getClickEvent()).getValue().startsWith(CommandManager.PREFIX)) {
CommandManager.INSTANCE.dispatch(style.getClickEvent().getValue());
callbackInfoReturnable.setReturnValue(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class MixinClientPlayNetworkHandler {
at = @At("HEAD"),
cancellable = true
)
public void onSendChatMessage(String message, CallbackInfo callbackInfo) {
public void sendChatMessageHook(String message, CallbackInfo callbackInfo) {
if (message.startsWith(CommandManager.PREFIX)) {
CommandManager.INSTANCE.dispatch(message);
client.inGameHud.getChatHud().addToMessageHistory(message);
Expand Down

0 comments on commit da1f0cc

Please sign in to comment.