Skip to content

Commit

Permalink
Handle out of bounds data values for stone
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Mar 27, 2024
1 parent 0a8e70e commit 9ed5575
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public ChunkTracker(final UserConnection user) {
for (int i = 1; i < 16; i++) { // air
this.registerReplacement(new IdAndData(0, i), new IdAndData(0, 0));
}
for (int i = 1; i < 7; i++) { // stone variants
this.registerReplacement(new IdAndData(BlockList1_6.stone.blockID, i), new IdAndData(BlockList1_6.stone.blockID, 0));
}
this.registerReplacement(new IdAndData(BlockList1_6.chest.blockID, 0), new IdAndData(BlockList1_6.chest.blockID, 3));
}

Expand Down

0 comments on commit 9ed5575

Please sign in to comment.