Fix 1.13 map data type

Fixes #641
This commit is contained in:
Nassim Jahnke 2023-12-07 09:54:30 +01:00
parent 255536e9d0
commit deede5347e
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 2 additions and 4 deletions

View File

@ -390,9 +390,7 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
byte x = wrapper.read(Type.BYTE); byte x = wrapper.read(Type.BYTE);
byte z = wrapper.read(Type.BYTE); byte z = wrapper.read(Type.BYTE);
byte direction = wrapper.read(Type.BYTE); byte direction = wrapper.read(Type.BYTE);
if (wrapper.read(Type.BOOLEAN)) { wrapper.read(Type.OPTIONAL_COMPONENT);
wrapper.read(Type.COMPONENT);
}
if (type > 9) { if (type > 9) {
wrapper.set(Type.VAR_INT, 1, wrapper.get(Type.VAR_INT, 1) - 1); wrapper.set(Type.VAR_INT, 1, wrapper.get(Type.VAR_INT, 1) - 1);
continue; continue;

View File

@ -45,7 +45,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
// ServerboundPackets1_20_3 // ServerboundPackets1_20_3
// ClientboundConfigurationPackets1_20_3 // ClientboundConfigurationPackets1_20_3
// ServerboundConfigurationPackets1_20_2 // ServerboundConfigurationPackets1_20_2
// EntityTypes1_19_4 (UNMAPPED type) // EntityTypes1_20_3 (UNMAPPED type)
// 1.99, 1.98 // 1.99, 1.98
public final class Protocol1_98To_99 extends BackwardsProtocol<ClientboundPackets1_20_3, ClientboundPackets1_20_3, ServerboundPackets1_20_3, ServerboundPackets1_20_3> { public final class Protocol1_98To_99 extends BackwardsProtocol<ClientboundPackets1_20_3, ClientboundPackets1_20_3, ServerboundPackets1_20_3, ServerboundPackets1_20_3> {