-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
chore: port Aether to 1.20.4 #2073
chore: port Aether to 1.20.4 #2073
Conversation
Hi, Super cool to see this contribution :D Need to say tho, would have been nice if this was chunked up a little bit. I get that ports can be a bit annoying where you have to fix everything at once to get it running, but having a bunch of json 1 liners and style formatting changes mixed in with actual updates makes this PR super hard to review properly. Not dismissing the hard work here, but ideally each one of those points you've made would have been a single PR in of itself. That helps the reviewer know what changes they're looking for, rather than just glossing over a lot of things and possibly hitting you with a flat out rejection. If there is anyway you could break this out into multiple PRs, that would be very helpful to the reviewer. Thanks :) |
I've been working on reviewing this and have gotten through the JSON changes but I haven't had time to finish yet. In terms of reviewability it doesn't bother me personally, even if long lists of code changes start to make GitHub struggle. On that note though, if there's easy ways to split things up that could be useful to teach to make things easier to view, but I do not mind the PR format, and I think trying to split something like a port can end up having more complications than making things easier. |
Yeah I realize it probably would've been good to split this up into separate commits. Whenever I port projects I normally do it all in 1 go so I was just doing what I'm used to. I'll definitely try to split it up more if I ever end up porting the project again |
Using this branch a client connecting to a dedicated server will immediately disconnect due to a message writing to a ByteBuf throwing an exception. Did not yet debug it further. (yes I couldn't wait for the update and gone and compiled it myself, knowing the risk that things may break 😄 ) io.netty.handler.codec.EncoderException: java.lang.ClassCastException: class java.util.Optional cannot be cast to class java.util.UUID (java.util.Optional and java.util.UUID are in module java.base of loader 'bootstrap')
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[netty-codec-4.1.97.Final.jar%2396!/:4.1.97.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:851) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:1010) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at io.netty.channel.AbstractChannel.write(AbstractChannel.java:296) ~[netty-transport-4.1.97.Final.jar%23135!/:4.1.97.Final] {}
at net.minecraft.network.Connection.doSendPacket(Connection.java:310) ~[neoforge-20.4.200.jar%23183!/:?] {re:classloading}
at net.minecraft.network.Connection.lambda$sendPacket$9(Connection.java:305) ~[neoforge-20.4.200.jar%23183!/:?] {re:classloading}
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.97.Final.jar%2397!/:4.1.97.Final] {}
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.97.Final.jar%2397!/:4.1.97.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.97.Final.jar%2397!/:4.1.97.Final] {}
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:413) ~[netty-transport-classes-epoll-4.1.97.Final.jar%23121!/:4.1.97.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar%2397!/:4.1.97.Final] {}
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar%2397!/:4.1.97.Final] {}
at java.lang.Thread.run(Thread.java:833) ~[?:?] {}
Caused by: java.lang.ClassCastException: class java.util.Optional cannot be cast to class java.util.UUID (java.util.Optional and java.util.UUID are in module java.base of loader 'bootstrap')
at com.aetherteam.nitrogen.network.packet.SyncPacket.write(SyncPacket.java:39) ~[nitrogen_internals-1.20.4-1.0.23-neoforge.jar%23186!/:1.20.4-1.0.23-neoforge] {re:classloading}
at com.aetherteam.nitrogen.network.packet.SyncEntityPacket.write(SyncEntityPacket.java:32) ~[nitrogen_internals-1.20.4-1.0.23-neoforge.jar%23186!/:1.20.4-1.0.23-neoforge] {re:classloading}
at net.minecraft.network.protocol.common.ClientboundCustomPayloadPacket.write(ClientboundCustomPayloadPacket.java:117) ~[neoforge-20.4.200.jar%23183!/:?] {re:classloading,pl:accesstransformer:B}
at net.neoforged.neoforge.network.filters.GenericPacketSplitter.encode(GenericPacketSplitter.java:107) ~[neoforge-20.4.200.jar%23182%23185!/:?] {re:classloading}
at net.neoforged.neoforge.network.filters.GenericPacketSplitter.encode(GenericPacketSplitter.java:45) ~[neoforge-20.4.200.jar%23182%23185!/:?] {re:classloading}
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:90) ~[netty-codec-4.1.97.Final.jar%2396!/:4.1.97.Final] {}
... 16 more |
should be fixed in the newest commit. Bit of an oversight, my bad |
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.
lgtm
This PR relies on my Nitrogen port to function. Let me know when its merged and i'll update the buildscript accordingly.
Changes in this port:
I agree to the Contributor License Agreement (CLA).