Fix 26.1.2 problem with invalid constructor selection#3626
Merged
Conversation
Contributor
Author
|
@dmulloy2 please merge |
dmulloy2
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes packet creation on newer versions
[15:33:02 WARN]: java.lang.IllegalArgumentException: Cannot create instance of class net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket
[15:33:02 WARN]: at ProtocolLib.jar//com.comphenix.protocol.injector.StructureCache.newInstance(StructureCache.java:95)
[15:33:02 WARN]: at ProtocolLib.jar//com.comphenix.protocol.injector.StructureCache.newPacket(StructureCache.java:82)
[15:33:02 WARN]: at ProtocolLib.jar//com.comphenix.protocol.injector.StructureCache.newPacket(StructureCache.java:217)
[15:33:02 WARN]: at ProtocolLib.jar//com.comphenix.protocol.events.PacketContainer.(PacketContainer.java:120)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.packet.reader.ReaderTests.testAllPlayerInfoReaders(ReaderTests.java:33)
[15:33:02 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[15:33:02 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:565)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.test.Tester.runTest(Tester.java:86)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.test.Tester.runTests(Tester.java:52)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.test.Tester.run(Tester.java:25)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.test.TestService.performTest(TestService.java:269)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.test.TestService.performTests(TestService.java:187)
[15:33:02 WARN]: at Intave.jar//de.jpx3.intave.executor.Synchronizer.lambda$wrapped$0(Synchronizer.java:46)
[15:33:02 WARN]: at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78)
[15:33:02 WARN]: at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474)
[15:33:02 WARN]: at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1802)
[15:33:02 WARN]: at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1655)
[15:33:02 WARN]: at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:449)
[15:33:02 WARN]: at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1713)
[15:33:02 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1383)
[15:33:02 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304)
[15:33:02 WARN]: at java.base/java.lang.Thread.run(Thread.java:1474)