Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ protected void registerPackets() {
// If needed for any particle, item, or block changes. Extend ParticleRewriter for particle serializer changes
particleRewriter.registerLevelParticles1_21_4(ClientboundPackets1_21_2.LEVEL_PARTICLES);
particleRewriter.registerExplode1_21_9(ClientboundPackets1_21_2.EXPLODE);
registerServerbound(ServerboundConfigurationPackets1_20_5.CUSTOM_PAYLOAD, particleRewriter::handleCustomPayload);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ protected void registerPackets() {

particleRewriter.registerLevelParticles1_21_4(ClientboundPackets1_21_11.LEVEL_PARTICLES);
particleRewriter.registerExplode1_21_9(ClientboundPackets1_21_11.EXPLODE);
registerServerbound(ServerboundConfigurationPackets1_21_9.CUSTOM_PAYLOAD, particleRewriter::handleCustomPayload);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public void handleArgument(final PacketWrapper wrapper, final String argumentTyp

particleRewriter.registerLevelParticles1_21_4(ClientboundPackets1_21_6.LEVEL_PARTICLES);
particleRewriter.registerExplode1_21_2(ClientboundPackets1_21_6.EXPLODE);
registerServerbound(ServerboundConfigurationPackets1_20_5.CUSTOM_PAYLOAD, particleRewriter::handleCustomPayload);

registerClientbound(ClientboundPackets1_21_6.CHANGE_DIFFICULTY, wrapper -> {
final int difficulty = wrapper.read(Types.VAR_INT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ protected void registerPackets() {

particleRewriter.registerLevelParticles1_21_4(ClientboundPackets1_21_6.LEVEL_PARTICLES);
particleRewriter.registerExplode1_21_2(ClientboundPackets1_21_6.EXPLODE);
registerServerbound(ServerboundConfigurationPackets1_21_6.CUSTOM_PAYLOAD, particleRewriter::handleCustomPayload);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ protected void registerPackets() {
translatableRewriter.registerPing();

particleRewriter.registerLevelParticles1_21_4(ClientboundPackets1_21_9.LEVEL_PARTICLES);
registerServerbound(ServerboundConfigurationPackets1_21_6.CUSTOM_PAYLOAD, particleRewriter::handleCustomPayload);
registerClientbound(ClientboundPackets1_21_9.EXPLODE, wrapper -> {
wrapper.passthrough(Types.DOUBLE); // X
wrapper.passthrough(Types.DOUBLE); // Y
Expand Down
Loading