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 Mixin log warning about max shift limit #29

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

ALongStringOfNumbers
Copy link

Fixes this log message about the max shift limit

@Inject(@At("INVOKE")) Shift.BY=2 on mixins.battlegear2.early.json:MixinInventoryPlayer from mod battlegear2::handler$zmb000$battlegear2$readFromNBT$setItems exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning.

@Alexdoru
Copy link
Member

I'd prefer you jhust edit the mixin in question and remove the max shift by, I made the mixin and iirc it shouldn't cause any issue, the decompile code will just be ugly

@Alexdoru Alexdoru self-assigned this Sep 11, 2024
@ALongStringOfNumbers
Copy link
Author

Would that require changing the shift value to At.Shift.AFTER? As right now the inject is being moved to after reading from NBT.

@Alexdoru
Copy link
Member

Would that require changing the shift value to At.Shift.AFTER? As right now the inject is being moved to after reading from NBT.

yes

@Alexdoru
Copy link
Member

well actually I'm trying rn and it doesn't work you need to change the mixin handler too xd

@Alexdoru Alexdoru merged commit 023e4e4 into GTNewHorizons:master Sep 11, 2024
1 check passed
@ALongStringOfNumbers ALongStringOfNumbers deleted the alson-fix-warning branch September 13, 2024 23:34
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