Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-25 15:50:12 +01:00
Fix serverbound beacon secondary effect
Dieser Commit ist enthalten in:
Ursprung
8e6727c350
Commit
cc7df5a4fc
@ -112,8 +112,11 @@ public final class BlockItemPacketRewriter1_20_2 extends ItemRewriter<Clientboun
|
|||||||
});
|
});
|
||||||
|
|
||||||
protocol.registerServerbound(ServerboundPackets1_19_4.SET_BEACON_EFFECT, wrapper -> {
|
protocol.registerServerbound(ServerboundPackets1_19_4.SET_BEACON_EFFECT, wrapper -> {
|
||||||
if (wrapper.passthrough(Type.BOOLEAN)) {
|
|
||||||
// Effects start at 1 before 1.20.2
|
// Effects start at 1 before 1.20.2
|
||||||
|
if (wrapper.passthrough(Type.BOOLEAN)) { // Primary effect
|
||||||
|
wrapper.write(Type.VAR_INT, wrapper.read(Type.VAR_INT) - 1);
|
||||||
|
}
|
||||||
|
if (wrapper.passthrough(Type.BOOLEAN)) { // Secondary effect
|
||||||
wrapper.write(Type.VAR_INT, wrapper.read(Type.VAR_INT) - 1);
|
wrapper.write(Type.VAR_INT, wrapper.read(Type.VAR_INT) - 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren