Change from mc.theWorld to chunk (#805)

This commit is contained in:
FireMasterK 2020-05-10 21:28:08 +05:30 committed by GitHub
parent 03cb0f3b5c
commit 83784201d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class Search extends Module {
try {
for (BlockPos blockPos : blocks) {
int side = GeometryMasks.Quad.ALL;
Block block = mc.world.getBlockState(blockPos).getBlock();
Block block = chunk.getBlockState(blockPos).getBlock();
if (blocksToFind.contains(block)) {
Tuple<Integer, Integer> tuple = getTuple(side, block);
foundBlocks.put(blockPos, tuple);