forked from RepoMirrors/baritone
crucial performance optimization
This commit is contained in:
parent
5caa0542ba
commit
8d62f754a7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue