alvin0319 / CustomItemLoader-WDPE

2 stars 2 forks source link

Support for WDPE 2.0.0 #1

Closed Flonja closed 1 year ago

Flonja commented 1 year ago

Title says the problem.

alvin0319 commented 1 year ago

The latest commit should fix the issue, but I didn't test it since I have no servers to test. Feel free to test it and open an issue if there are any issues.

To build jar, use ./gradlew shadowJar

Flonja commented 1 year ago
java.lang.IllegalArgumentException: Packet class already registered
        at org.cloudburstmc.protocol.common.util.Preconditions.checkArgument(Preconditions.java:132) ~[Waterdog.jar:?]
        at org.cloudburstmc.protocol.bedrock.codec.BedrockCodec$Builder.registerPacket(BedrockCodec.java:126) ~[Waterdog.jar:?]
        at dev.minjae.customitemloader.wdpe.Loader$onEnable$2.updateCodec(Loader.kt:23) ~[?:?]
        at dev.waterdog.waterdogpe.network.protocol.ProtocolCodecs.buildCodec(ProtocolCodecs.java:136) ~[Waterdog.jar:?]
        at dev.waterdog.waterdogpe.ProxyServer.boot(ProxyServer.java:212) ~[Waterdog.jar:?]
        at dev.waterdog.waterdogpe.ProxyServer.<init>(ProxyServer.java:193) ~[Waterdog.jar:?]
        at dev.waterdog.waterdogpe.WaterdogPE.main(WaterdogPE.java:78) ~[Waterdog.jar:?]