ViaVersionMCP / ViaMCP

ViaVersion VersionSwitcher for Minecraft Coder Pack (MCP)
GNU General Public License v3.0
51 stars 10 forks source link

Null pointer due to missing protocol information. #17

Closed EzDiaoL closed 3 months ago

EzDiaoL commented 4 months ago

Add the following code to ProtocolInfo to fix it:

public static ProtocolInfo R1_20_5 = new ProtocolInfo("Trails & Tales", NO_DESC, "April 23, 2024", ProtocolVersion.v1_20_5);
public static ProtocolInfo R1_20_3 = new ProtocolInfo("Trails & Tales", NO_DESC, "December 5, 2023", ProtocolVersion.v1_20_3);
public static ProtocolInfo R1_20_2 = new ProtocolInfo("Trails & Tales", NO_DESC, "September 21, 2023", ProtocolVersion.v1_20_2);

    private final static List<ProtocolInfo> PROTOCOL_INFOS = Arrays.asList(R1_7, R1_7_6, R1_8, R1_9, R1_9_1, R1_9_2, R1_9_3, R1_10, R1_11, R1_11_1, R1_12, R1_12_1, R1_12_2, R1_13, R1_13_1, R1_13_2, R1_14, R1_14_1, R1_14_2, R1_14_3, R1_14_4,
        R1_15, R1_15_1, R1_15_2, R1_16, R1_16_1, R1_16_2, R1_16_3, R1_16_4, R1_17, R1_17_1, R1_18, R1_18_2, R1_19, R1_19_1, R1_19_3, R1_19_4, R1_20, R1_20_2, R1_20_3, R1_20_5);
FlorianMichael commented 4 months ago

You can open a pull request and add it to both classes yourself if you want, otherwise will push it later one today.