Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
1.20.5-pre1
Dieser Commit ist enthalten in:
Ursprung
68807be880
Commit
d2edf3fbfe
@ -62,8 +62,15 @@ public final class BlockItemPacketRewriter1_20_5 extends BackwardsStructuredItem
|
||||
registerSetSlot1_17_1(ClientboundPackets1_20_5.SET_SLOT);
|
||||
registerAdvancements1_20_3(ClientboundPackets1_20_5.ADVANCEMENTS);
|
||||
registerClickWindow1_17_1(ServerboundPackets1_20_3.CLICK_WINDOW);
|
||||
registerCreativeInvAction(ServerboundPackets1_20_3.CREATIVE_INVENTORY_ACTION);
|
||||
registerWindowPropertyEnchantmentHandler(ClientboundPackets1_20_5.WINDOW_PROPERTY);
|
||||
protocol.registerServerbound(ServerboundPackets1_20_3.CREATIVE_INVENTORY_ACTION, wrapper -> {
|
||||
final short slot = wrapper.read(Type.SHORT);
|
||||
wrapper.write(Type.UNSIGNED_SHORT, (int) slot); // Just write as is. Negative numbers become large numbers, staying invalid
|
||||
|
||||
final Item item = wrapper.read(Type.ITEM1_20_2);
|
||||
final Item newItem = handleItemToServer(item);
|
||||
wrapper.write(Types1_20_5.ITEM, newItem);
|
||||
});
|
||||
|
||||
protocol.registerClientbound(ClientboundPackets1_20_5.SPAWN_PARTICLE, wrapper -> {
|
||||
wrapper.write(Type.VAR_INT, 0); // Write dummy value, set later
|
||||
|
@ -1,4 +1,4 @@
|
||||
projectVersion=4.10.0-24w14a-SNAPSHOT
|
||||
projectVersion=4.10.0-1.20.5-pre1-SNAPSHOT
|
||||
|
||||
# Smile emoji
|
||||
mcVersions=1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12, 1.11.2, 1.11.1, 1.11, 1.10.2, 1.10.1, 1.10
|
||||
|
@ -3,7 +3,7 @@ metadata.format.version = "1.1"
|
||||
[versions]
|
||||
|
||||
# ViaVersion
|
||||
viaver = "4.10.0-24w14a-SNAPSHOT"
|
||||
viaver = "4.10.0-1.20.5-pre1-SNAPSHOT"
|
||||
|
||||
# Common provided
|
||||
netty = "4.0.20.Final"
|
||||
|
@ -55,7 +55,7 @@ public final class BlockItemPacketRewriter1_99 extends BackwardsStructuredItemRe
|
||||
registerEntityEquipmentArray(ClientboundPackets1_20_5.ENTITY_EQUIPMENT);
|
||||
registerClickWindow1_17_1(ServerboundPackets1_20_5.CLICK_WINDOW);
|
||||
registerTradeList1_20_5(ClientboundPackets1_20_5.TRADE_LIST, Types1_20_5.ITEM_COST, Types1_20_5.ITEM_COST, Types1_20_5.OPTIONAL_ITEM_COST, Types1_20_5.OPTIONAL_ITEM_COST);
|
||||
registerCreativeInvAction(ServerboundPackets1_20_5.CREATIVE_INVENTORY_ACTION);
|
||||
registerCreativeInvAction1_20_5(ServerboundPackets1_20_5.CREATIVE_INVENTORY_ACTION);
|
||||
registerWindowPropertyEnchantmentHandler(ClientboundPackets1_20_5.WINDOW_PROPERTY);
|
||||
registerSpawnParticle1_20_5(ClientboundPackets1_20_5.SPAWN_PARTICLE, Types1_20_5.PARTICLE, Types1_20_5.PARTICLE);
|
||||
registerExplosion(ClientboundPackets1_20_5.EXPLOSION, Types1_20_5.PARTICLE, Types1_20_5.PARTICLE);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren