Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Fix MetaTypes1_20_2 item type
Dieser Commit ist enthalten in:
Ursprung
a9288ebd3a
Commit
625373827c
@ -35,7 +35,7 @@ public final class MetaTypes1_20_2 extends AbstractMetaTypes {
|
|||||||
public final MetaType stringType = add(4, Type.STRING);
|
public final MetaType stringType = add(4, Type.STRING);
|
||||||
public final MetaType componentType = add(5, Type.COMPONENT);
|
public final MetaType componentType = add(5, Type.COMPONENT);
|
||||||
public final MetaType optionalComponentType = add(6, Type.OPTIONAL_COMPONENT);
|
public final MetaType optionalComponentType = add(6, Type.OPTIONAL_COMPONENT);
|
||||||
public final MetaType itemType = add(7, Type.FLAT_VAR_INT_ITEM);
|
public final MetaType itemType = add(7, Type.ITEM1_20_2);
|
||||||
public final MetaType booleanType = add(8, Type.BOOLEAN);
|
public final MetaType booleanType = add(8, Type.BOOLEAN);
|
||||||
public final MetaType rotationType = add(9, Type.ROTATION);
|
public final MetaType rotationType = add(9, Type.ROTATION);
|
||||||
public final MetaType positionType = add(10, Type.POSITION1_14);
|
public final MetaType positionType = add(10, Type.POSITION1_14);
|
||||||
|
@ -311,7 +311,7 @@ public abstract class ItemRewriter<C extends ClientboundPacketType, S extends Se
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerAdvancements1_20(C packetType) {
|
public void registerAdvancements1_20_2(C packetType) {
|
||||||
protocol.registerClientbound(packetType, wrapper -> {
|
protocol.registerClientbound(packetType, wrapper -> {
|
||||||
wrapper.passthrough(Type.BOOLEAN); // Reset/clear
|
wrapper.passthrough(Type.BOOLEAN); // Reset/clear
|
||||||
int size = wrapper.passthrough(Type.VAR_INT); // Mapping size
|
int size = wrapper.passthrough(Type.VAR_INT); // Mapping size
|
||||||
@ -336,11 +336,9 @@ public abstract class ItemRewriter<C extends ClientboundPacketType, S extends Se
|
|||||||
wrapper.passthrough(Type.FLOAT); // Y
|
wrapper.passthrough(Type.FLOAT); // Y
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper.passthrough(Type.STRING_ARRAY); // Criteria
|
int requirements = wrapper.passthrough(Type.VAR_INT);
|
||||||
|
for (int array = 0; array < requirements; array++) {
|
||||||
int arrayLength = wrapper.passthrough(Type.VAR_INT);
|
wrapper.passthrough(Type.STRING_ARRAY);
|
||||||
for (int array = 0; array < arrayLength; array++) {
|
|
||||||
wrapper.passthrough(Type.STRING_ARRAY); // String array
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper.passthrough(Type.BOOLEAN); // Send telemetry
|
wrapper.passthrough(Type.BOOLEAN); // Send telemetry
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren