洞穴夜莺
本帖最后由 洞穴夜莺 于 2021-6-27 09:42 编辑

第一次用@ModifyContant就出了问题 (这东西实在太少见了)
MixinServerPlayNetworkHandler
头顶是@Mixin(ServerPlayNetworkHandler)
完整代码在https://github.com/CaveNightingale/cardboard

崩溃报告

            [tr]                [/tr][/table]
                [table]

3TUSK
ModifyConstant callbacks should always take one argument of the appropriate constant type and return the same type. For example a ModifyConstant for a local of type String should have the signature:

  1. private String methodName(String variable) { ...
复制代码

The callback receives the original value of the constant, and should return the new value.


摘自 https://jenkins.liteloader.com/v ... ModifyConstant.html