This commit is contained in:
Nassim Jahnke 2022-04-13 18:48:53 +02:00
parent 56dfc985d2
commit 15c7106430
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 29 additions and 4 deletions

View File

@ -5,7 +5,7 @@ plugins {
allprojects {
group = "com.viaversion"
version = "4.3.0-22w14a-SNAPSHOT"
version = "4.3.0-22w15a-SNAPSHOT"
description = "Allow older clients to join newer server versions."
}

View File

@ -163,5 +163,28 @@ public final class BlockItemPackets1_19 extends ItemRewriter<Protocol1_18_2To1_1
create(Type.VAR_INT, 0); // Sequence
}
});
protocol.registerServerbound(ServerboundPackets1_17.SET_BEACON_EFFECT, new PacketRemapper() {
@Override
public void registerMap() {
handler(wrapper -> {
final int primaryEffect = wrapper.read(Type.VAR_INT);
if (primaryEffect != -1) {
wrapper.write(Type.BOOLEAN, true);
wrapper.write(Type.VAR_INT, primaryEffect);
} else {
wrapper.write(Type.BOOLEAN, false);
}
final int secondaryEffect = wrapper.read(Type.VAR_INT);
if (secondaryEffect != -1) {
wrapper.write(Type.BOOLEAN, true);
wrapper.write(Type.VAR_INT, secondaryEffect);
} else {
wrapper.write(Type.BOOLEAN, false);
}
});
}
});
}
}

View File

@ -296,7 +296,6 @@
},
"sounds": {
"music.overworld.deep_dark": "",
"entity.parrot.imitate.warden": "",
"block.sculk_vein.break": "",
"block.sculk_vein.fall": "",
"block.sculk_vein.hit": "",
@ -398,7 +397,9 @@
"entity.allay.hurt": "",
"entity.allay.item_given": "",
"entity.allay.item_taken": "",
"entity.parrot.imitate.warden": ""
"entity.parrot.imitate.warden": "",
"entity.warden.sonic_boom": "",
"entity.warden.sonic_charge": ""
},
"items": {
"minecraft:warden_spawn_egg": {
@ -599,7 +600,8 @@
"sculk_charge": "",
"sculk_charge_pop": "bubble_pop",
"shriek": "",
"allay_dust": "wax_off"
"allay_dust": "wax_off",
"sonic_boom": "enchanted_hit"
},
"blockentities": {
"sculk_catalyst": "",