Handle out of bounds data values for stone

This commit is contained in:
RaphiMC 2024-03-27 02:03:18 +01:00
parent 0a8e70e5dd
commit 9ed5575a29
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ public class ChunkTracker extends AbstractChunkTracker {
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));
}