-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keepMessage #58
keepMessage #58
Conversation
restriction = @Restriction(require = @Condition(value = minecraft, versionPredicates = ">=1.20.4")), | ||
category = Config.Category.PORTING | ||
) | ||
public static final TweakerMoreConfigBoolean KEEP_MESSAGE = newConfigBoolean("keepMessage", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议使用名字 keepMessageHistoryOnReconfiguration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
除此之外,该选项应为 mc_tweak
@Mixin(MinecraftClient.class) | ||
public abstract class MinecraftClientMixin | ||
{ | ||
@WrapWithCondition( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
阻止整个 inGameHud
的 clear
可能会导致其他的副作用
.: keepMessage | ||
comment: |- | ||
Keep your chat messages | ||
With this option, When you use "/server", the client retains your chat message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请描述清楚功能用途。在原版语义下,/server
指令是不存在的指令
已于 c5713a3 实现 |
#57
玩家使用
/server
切换服务器时会进入配置阶段, 这个阶段会清除聊天记录使用
@WrapWithCondition
将清除聊天记录代码包裹上if
, 问题就解决了玩家disconnect的时候, 记录会正常清除
其他
于1.20.4测试正常