Skip to content

Commit

Permalink
fix nibble unpacking
Browse files Browse the repository at this point in the history
Co-authored-by: jaskarth <[email protected]>
  • Loading branch information
sisby-folk and jaskarth committed Mar 29, 2024
1 parent 391ebaa commit cea5207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ org.gradle.configureondemand=true
# Enable advanced multi-module optimizations (share tiny-remaper instance between projects)
fabric.loom.multiProjectOptimisation=true
# Mod Properties
baseVersion = 0.1.0-beta.19
baseVersion = 0.1.0-beta.20
defaultBranch = 1.20
branch = 1.20
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static UInts fromBuf(PacketByteBuf buf) {

@Override
public int get(int i) {
return (i & 1) == 0 ? value[i / 2] >>> NIBBLE_SIZE : value[i / 2] & NIBBLE_MASK;
return ((i & 1) == 0 ? value[i / 2] >>> NIBBLE_SIZE : value[i / 2]) & NIBBLE_MASK;
}

@Override
Expand Down

0 comments on commit cea5207

Please sign in to comment.