Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Oct 28, 2024
1 parent b330440 commit 6fd7b8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public ProtocolVersion getClientProtocol(UserConnection connection) {
}
}
```
There is also a ``VAFServerVersionProvider`` which can act as wrapper class instead.

## Contact
If you encounter any issues, please report them on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@
import net.raphimc.viaaprilfools.protocol.s3d_sharewaretov1_14.rewriter.BlockItemPacketRewriter3D_Shareware;
import net.raphimc.viaaprilfools.protocol.s3d_sharewaretov1_14.rewriter.EntityPacketRewriter3D_Shareware;
import net.raphimc.viaaprilfools.protocol.s3d_sharewaretov1_14.storage.ChunkCenterTracker3D_Shareware;
import org.checkerframework.checker.nullness.qual.Nullable;

public class Protocol3D_SharewareTo1_14 extends BackwardsProtocol<ClientboundPackets3D_Shareware, ClientboundPackets1_14, ServerboundPackets3D_Shareware, ServerboundPackets1_14> {

public static final BackwardsMappingData MAPPINGS = new AprilFoolsMappingData("3D_Shareware", "1.14", Protocol1_13_2To1_14.class);
private static final int SERVERSIDE_VIEW_DISTANCE = 64;

private final BlockItemPacketRewriter3D_Shareware blockItemPackets = new BlockItemPacketRewriter3D_Shareware(this);
private final BlockItemPacketRewriter3D_Shareware itemRewriter = new BlockItemPacketRewriter3D_Shareware(this);
private final ParticleRewriter<ClientboundPackets3D_Shareware> particleRewriter = new ParticleRewriter<>(this);

public Protocol3D_SharewareTo1_14() {
Expand Down Expand Up @@ -96,7 +95,7 @@ public BackwardsMappingData getMappingData() {

@Override
public BlockItemPacketRewriter3D_Shareware getItemRewriter() {
return this.blockItemPackets;
return this.itemRewriter;
}

@Override
Expand Down

0 comments on commit 6fd7b8c

Please sign in to comment.