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

Feature request fix CustomPacketAPI fix #161

Open
fantahund opened this issue Sep 30, 2024 Discussed in #160 · 4 comments
Open

Feature request fix CustomPacketAPI fix #161

fantahund opened this issue Sep 30, 2024 Discussed in #160 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@fantahund
Copy link

fantahund commented Sep 30, 2024

Discussed in #160

Originally posted by fantahund September 30, 2024
If you register CustomPacket via the Fabric API you always get a ClassCastExeption. With the original Fabric api you don't get this error. On the Neoforge discord I was told that it is most likely due to the Forgiefied Fabric API. The class that causes the problem for me is in the Voxelmap I link it once.

Packet: Packet Class
Register: Register Class

Error: Error: https://cpaste.de/surovivabu.pl

@Su5eD
Copy link
Member

Su5eD commented Sep 30, 2024

Please use a paste site for uploading logs instead of including them in the description - this makes the page unreadable.

@Su5eD Su5eD self-assigned this Oct 1, 2024
@Su5eD Su5eD added the bug Something isn't working label Oct 1, 2024
@Su5eD
Copy link
Member

Su5eD commented Oct 1, 2024

Hi, I've cloned the VoxelMap repo and tried running the game using the runClient gradle task and IDE run config, but they both resulted in a crash shortly after launching.

Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @Inject annotation on onTick specifies a target class 'net/minecraft/class_310', which is not supported [PREINJECT Applicator Phase -> mixin.voxelmap.json:APIMixinMinecraftClient from mod voxelmap -> Prepare Injections -> handler$zzb000$voxelmap$onTick(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse -> -> Parse Selectors]

@fantahund
Copy link
Author

I am new to Neoforge and have been trying to get it to work for an hour now. I never use it because I have a test environment in Prism. I could only find out that it tries to start with the 1.21 but it should take the 1.21.1. I have not figured out how to tell it to do that.

@fantahund
Copy link
Author

Oh, and please use the 1.21.1 branch now, the Fabric Neoforge branch is outdated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants