Tslat/SmartBrainLib

FollowEntity using wrong move values in teleportToTarget

Tslat opened this issue · 0 comments

Tslat commented

return level.noCollision(entity, entity.getBoundingBox().move(statePos.subtract(entityPos)));

Should be return level.noCollision(entity, entity.getBoundingBox().move(Vec3.atBottomCenterOf(statePos).subtract(entity.position())));

Current implementation calculates difference between targetentity pos and targetblock pos, which is not what the brain mob's pos is moving through