This commit is contained in:
Brady 2018-11-13 13:39:11 -06:00
parent 71e7f0a04c
commit ef5e3ab06e
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -19,7 +19,6 @@ package baritone.utils.player;
import baritone.api.utils.BetterBlockPos; import baritone.api.utils.BetterBlockPos;
import baritone.api.utils.IPlayerContext; import baritone.api.utils.IPlayerContext;
import baritone.utils.BlockStateInterface;
import net.minecraft.block.BlockSlab; import net.minecraft.block.BlockSlab;
/** /**
@ -32,7 +31,7 @@ public abstract class AbstractPlayerContext implements IPlayerContext {
public BetterBlockPos playerFeet() { public BetterBlockPos playerFeet() {
// TODO find a better way to deal with soul sand!!!!! // TODO find a better way to deal with soul sand!!!!!
BetterBlockPos feet = new BetterBlockPos(player().posX, player().posY + 0.1251, player().posZ); BetterBlockPos feet = new BetterBlockPos(player().posX, player().posY + 0.1251, player().posZ);
if (BlockStateInterface.get(feet).getBlock() instanceof BlockSlab) { if (world().getBlockState(feet).getBlock() instanceof BlockSlab) {
return feet.up(); return feet.up();
} }
return feet; return feet;