Skip to content
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

Fix Nyan-Work#45 #2

Merged
merged 5 commits into from
Sep 24, 2024
Merged

Conversation

wendavid552
Copy link

@wendavid552 wendavid552 commented Sep 23, 2024

Nyan-Work#45 中有两个bug:

与sodium不兼容,启动时出问题

实际上是因为调用@WrapOperation的时候使用了magiclib@WrapOperation而没有使用Operation

ModMenu的界面中滚动时会崩溃

实际上是与Lithium的不兼容导致的。在Lithium中会提前调用getCollisionShape()的函数,而在OMMC关于脚手架上禁止往下的功能中注入了这个函数,函数开头调用了Configs,这时并没有初始化MinecraftClient,因此对应的handler里初始时获取到的是null值,从而会导致崩溃。

值得注意的是,这个修复的commit实际上比较hacky,可算是临时性的修复。进一步修复可能需要更改上游magiclib的相关函数。

以及以下bug:

sortInventory复制tag时tag可能为空

.copyTags()时可能本身DataComponents就是空的,通过判断DataComponents是不是null修复

CI need update

java 17的CI系统得稍微升级一下了(虽然只是修修补补,应该直接替换成MasaGadget那种之类的)

Copy link
Owner

@SkyDynamic SkyDynamic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SkyDynamic SkyDynamic merged commit 7850c3f into SkyDynamic:nyan-work/dev Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants