crucial performance optimization

This commit is contained in:
Leijurv 2018-09-02 12:04:48 -07:00
parent 5caa0542ba
commit 8d62f754a7
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ import baritone.pathing.movement.MovementHelper;
import baritone.utils.Helper;
import baritone.utils.pathing.PathingBlockType;
import net.minecraft.block.Block;
import net.minecraft.block.BlockAir;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.ResourceLocation;
@ -114,7 +113,7 @@ public final class ChunkPacker implements Helper {
// however, this failed in the nether when you were near a nether fortress
// because fences check their adjacent blocks in the world for their fence connection status to determine AABB shape
// this caused a nullpointerexception when we saved chunks on unload, because they were unable to check their neighbors
if (block instanceof BlockAir) {
if (block == Blocks.AIR) {
return PathingBlockType.AIR;
}