Skip to content

Commit

Permalink
Fix client side crash
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD committed Jun 10, 2024
1 parent ea04e15 commit 326e0d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Client side crash

## [1.4.1] - 2024-06-03
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ private static StreamCodec<ByteBuf, ClientboundChunkBatchStartPacket> allowNonSi
return new StreamCodec<>() {
@Override
public ClientboundChunkBatchStartPacket decode(ByteBuf object) {
// This mixin is only applied on the server, we don't care about decoding
throw new UnsupportedOperationException();
return ClientboundChunkBatchStartPacket.INSTANCE;
}

@Override
Expand Down
4 changes: 1 addition & 3 deletions common/src/main/resources/antixray.common.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"ChunkSerializerMixin",
"ClientboundBundlePacketMixin",
"ClientboundChunkBatchStartPacketAccessor",
"ClientboundChunkBatchStartPacketMixin",
"ClientboundLevelChunkPacketDataMixin",
"ClientboundLevelChunkWithLightPacketMixin",
"ConnectionMixin",
Expand All @@ -17,9 +18,6 @@
"ServerLevelMixin",
"ServerPlayerGameModeMixin"
],
"server": [
"ClientboundChunkBatchStartPacketMixin"
],
"injectors": {
"defaultRequire": 1
}
Expand Down
1 change: 0 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"antixray.common.mixins.json",
"antixray.fabric.mixins.json"
],
"accessWidener": "antixray.accesswidener",
"depends": {
"fabricloader": ">=0.12.6",
"java": ">=17"
Expand Down

0 comments on commit 326e0d4

Please sign in to comment.